]> git.decadent.org.uk Git - dak.git/commitdiff
make .dak files world-readable
authorPhilipp Kern <pkern@debian.org>
Sat, 13 Sep 2008 14:21:13 +0000 (16:21 +0200)
committerPhilipp Kern <pkern@debian.org>
Sat, 13 Sep 2008 14:21:13 +0000 (16:21 +0200)
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: Philipp Kern <pkern@debian.org>
ChangeLog
daklib/queue.py

index 09b9689fddb3e02ea037be0a9e66e6d3852daa80..f0837bda54b74365eeeb9802e3788349ac9e74ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+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>
 
        * dak/new_security_install.py (actually_upload): remove
index 40960b9040e297cd2c10953e5015389ba297caa4..2c3602a2b4741ba4690af16b3315e181df762ae7 100755 (executable)
@@ -217,14 +217,9 @@ class Upload:
         dump_filename = os.path.join(dest_dir,self.pkg.changes_file[:-8] + ".dak")
         dump_file = utils.open_file(dump_filename, 'w')
         try:
-            os.chmod(dump_filename, 0660)
+            os.chmod(dump_filename, 0664)
         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)
         d_changes = {}