Просмотр исходного кода

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
Родитель
Сommit
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>
 
 	* 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
     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

+ 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);
 $options{"changelogformat"} = $changelogformat if $changelogformat;
 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}) {
     $compare = $ENV{DPKG_GENSYMBOLS_CHECK_LEVEL};
 }