The following commit has been merged in the master branch:
commit e81e80e3caac356d1951a4b8b50e3a9d8be3509d
Author: Raphael Hertzog <hert...@debian.org>
Date:   Sun Feb 22 10:42:02 2009 +0100

    dpkg-gencontrol, dpkg-gensymbols: reset umask to 0022
    
    Reset umask to 0022 to ensure that files created in the DEBIAN directory
    have sane permissions. Closes: #516481

diff --git a/ChangeLog b/ChangeLog
index a912d14..86f2670 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-22  Raphael Hertzog  <hert...@debian.org>
+
+       * scripts/dpkg-gencontrol.pl, scripts/dpkg-gensymbols.pl: Reset
+       umask to 0022 to ensure that files created in the DEBIAN directory
+       have sane permissions.
+
 2009-02-13  Guillem Jover  <guil...@debian.org>
 
        * src/query.c: Remove bogus comment about '--yet-to-unpack'.
diff --git a/debian/changelog b/debian/changelog
index 2659856..c363634 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -150,6 +150,9 @@ dpkg (1.15.0) UNRELEASED; urgency=low
     (>= 6.0.7) for this. Update debhelper compatility level to 6 at the same
     time.
   * Drop cleanup-info script.
+  * Reset umask to 0022 in dpkg-gencontrol and dpkg-gensymbols to ensure that
+    files created in the DEBIAN directory have sane permissions.
+    Closes: #516481
 
   [ Pierre Habouzit ]
   * Add a --query option to update-alternatives. Closes: #336091, #441904
diff --git a/scripts/dpkg-gencontrol.pl b/scripts/dpkg-gencontrol.pl
index 85cd1c1..0e87281 100755
--- a/scripts/dpkg-gencontrol.pl
+++ b/scripts/dpkg-gencontrol.pl
@@ -121,6 +121,7 @@ while (@ARGV) {
     }
 }
 
+umask 0022; # ensure sane default permissions for created files
 my %options = (file => $changelogfile);
 $options{"changelogformat"} = $changelogformat if $changelogformat;
 my $changelog = parse_changelog(%options);
diff --git a/scripts/dpkg-gensymbols.pl b/scripts/dpkg-gensymbols.pl
index ca28aef..d4bb229 100755
--- a/scripts/dpkg-gensymbols.pl
+++ b/scripts/dpkg-gensymbols.pl
@@ -106,6 +106,8 @@ while (@ARGV) {
     }
 }
 
+umask 0022; # ensure sane default permissions for created files
+
 if (exists $ENV{DPKG_GENSYMBOLS_CHECK_LEVEL}) {
     $compare = $ENV{DPKG_GENSYMBOLS_CHECK_LEVEL};
 }

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to