ソースを参照

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
Raphael Hertzog 17 年 前
コミット
e81e80e3ca
共有4 個のファイルを変更した12 個の追加0 個の削除を含む
  1. 6 0
      ChangeLog
  2. 3 0
      debian/changelog
  3. 1 0
      scripts/dpkg-gencontrol.pl
  4. 2 0
      scripts/dpkg-gensymbols.pl

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+2009-02-22  Raphael Hertzog  <hertzog@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  <guillem@debian.org>
 2009-02-13  Guillem Jover  <guillem@debian.org>
 
 
 	* src/query.c: Remove bogus comment about '--yet-to-unpack'.
 	* src/query.c: Remove bogus comment about '--yet-to-unpack'.

+ 3 - 0
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
     (>= 6.0.7) for this. Update debhelper compatility level to 6 at the same
     time.
     time.
   * Drop cleanup-info script.
   * 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 ]
   [ Pierre Habouzit ]
   * Add a --query option to update-alternatives. Closes: #336091, #441904
   * Add a --query option to update-alternatives. Closes: #336091, #441904

+ 1 - 0
scripts/dpkg-gencontrol.pl

@@ -121,6 +121,7 @@ while (@ARGV) {
     }
     }
 }
 }
 
 
+umask 0022; # ensure sane default permissions for created files
 my %options = (file => $changelogfile);
 my %options = (file => $changelogfile);
 $options{"changelogformat"} = $changelogformat if $changelogformat;
 $options{"changelogformat"} = $changelogformat if $changelogformat;
 my $changelog = parse_changelog(%options);
 my $changelog = parse_changelog(%options);

+ 2 - 0
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}) {
 if (exists $ENV{DPKG_GENSYMBOLS_CHECK_LEVEL}) {
     $compare = $ENV{DPKG_GENSYMBOLS_CHECK_LEVEL};
     $compare = $ENV{DPKG_GENSYMBOLS_CHECK_LEVEL};
 }
 }