[or-cvs] r17938: {projects} Fix package contents to not leak file system information in (projects/gettor)

ioerror at seul.org ioerror at seul.org
Tue Jan 6 00:04:42 UTC 2009


Author: ioerror
Date: 2009-01-05 19:04:42 -0500 (Mon, 05 Jan 2009)
New Revision: 17938

Modified:
   projects/gettor/gettor_packages.py
Log:
Fix package contents to not leak file system information in .zip files.


Modified: projects/gettor/gettor_packages.py
===================================================================
--- projects/gettor/gettor_packages.py	2009-01-05 23:55:24 UTC (rev 17937)
+++ projects/gettor/gettor_packages.py	2009-01-06 00:04:42 UTC (rev 17938)
@@ -81,8 +81,8 @@
                     # If .asc file is there, build Zip file
                     if os.access(ascfile, os.R_OK):
                         zip = zipfile.ZipFile(zipFileName, "w")
-                        zip.write(file)
-                        zip.write(ascfile)
+                        zip.write(file, os.path.basename(file))
+                        zip.write(ascfile, os.path.basename(ascfile))
                         zip.close()
                         self.packageList[pack] = zipFileName
                         break



More information about the tor-commits mailing list