[sword-svn] r3891 - trunk/src/modules/common
scribe at crosswire.org
scribe at crosswire.org
Sat Sep 16 08:09:16 EDT 2023
Author: scribe
Date: 2023-09-16 08:09:16 -0400 (Sat, 16 Sep 2023)
New Revision: 3891
Modified:
trunk/src/modules/common/zipcomprs.cpp
Log:
actually do something with destination path
Modified: trunk/src/modules/common/zipcomprs.cpp
===================================================================
--- trunk/src/modules/common/zipcomprs.cpp 2023-08-27 19:31:58 UTC (rev 3890)
+++ trunk/src/modules/common/zipcomprs.cpp 2023-09-16 12:09:16 UTC (rev 3891)
@@ -435,6 +435,8 @@
return -4;
}
+ if (fileName.startsWith(PATH_DELIMETER)) fileName << 1;
+ fileName = destRoot + PATH_DELIMETER + fileName;
// write out one zip entry to destination
fileMgr->createParent(fileName);
FileDesc *out = fileMgr->open(fileName, FileMgr::CREAT|FileMgr::TRUNC|FileMgr::RDWR);
More information about the sword-cvs
mailing list