提交 a6dbdaaf 编写于 作者: P Philipp Kern

make .dak files world-readable

2008-09-13  Philipp Kern  <pkern@debian.org>

        * dak/queue.py (dump_vars): make .dak u,g=rw,o=r; James'
        assumption (as stated in 2002-05-18's ChangeLog entry)
        was that people will use the information therein albeit
        it is "just" a duplication of information present in
        other control files; people should still not use it
        as source of information but access to those files makes
        dak debugging easier and there is no leak of sensitive
        information involved
Signed-off-by: NPhilipp Kern <pkern@debian.org>
上级 9229aebd
2008-09-13 Philipp Kern <pkern@debian.org>
* dak/queue.py (dump_vars): make .dak u,g=rw,o=r; James'
assumption (as stated in 2002-05-18's ChangeLog entry)
was that people will use the information therein albeit
it is "just" a duplication of information present in
other control files; people should still not use it
as source of information but access to those files makes
dak debugging easier and there is no leak of sensitive
information involved
2008-09-12 Philipp Kern <pkern@debian.org> 2008-09-12 Philipp Kern <pkern@debian.org>
* dak/new_security_install.py (actually_upload): remove * dak/new_security_install.py (actually_upload): remove
......
...@@ -217,13 +217,8 @@ class Upload: ...@@ -217,13 +217,8 @@ class Upload:
dump_filename = os.path.join(dest_dir,self.pkg.changes_file[:-8] + ".dak") dump_filename = os.path.join(dest_dir,self.pkg.changes_file[:-8] + ".dak")
dump_file = utils.open_file(dump_filename, 'w') dump_file = utils.open_file(dump_filename, 'w')
try: try:
os.chmod(dump_filename, 0660) os.chmod(dump_filename, 0664)
except OSError, e: except OSError, e:
if errno.errorcode[e.errno] == 'EPERM':
perms = stat.S_IMODE(os.stat(dump_filename)[stat.ST_MODE])
if perms & stat.S_IROTH:
utils.fubar("%s is world readable and chmod failed." % (dump_filename))
else:
raise raise
p = cPickle.Pickler(dump_file, 1) p = cPickle.Pickler(dump_file, 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册