commit/galaxy-central: natefoo: When creating the temp directory for library zip downloads, use the Galaxy user's umask and group on the directory.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/068a043f6bb1/ changeset: 068a043f6bb1 user: natefoo date: 2012-08-29 18:36:21 summary: When creating the temp directory for library zip downloads, use the Galaxy user's umask and group on the directory. affected #: 1 file diff -r 36b70e29192f0ddb92f36ddd6c9b3fcbf996783d -r 068a043f6bb17b4faa3e171ca244029fdd66bbfe lib/galaxy/web/controllers/library_common.py --- a/lib/galaxy/web/controllers/library_common.py +++ b/lib/galaxy/web/controllers/library_common.py @@ -1752,6 +1752,7 @@ if action == 'zip': # Can't use mkstemp - the file must not exist first tmpd = tempfile.mkdtemp() + util.umask_fix_perms( tmpd, trans.app.config.umask, 0777, self.app.config.gid ) tmpf = os.path.join( tmpd, 'library_download.' + action ) if ziptype == '64' and trans.app.config.upstream_gzip: archive = zipfile.ZipFile( tmpf, 'w', zipfile.ZIP_STORED, True ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket