]> err.no Git - dpkg/commitdiff
dpkg-source: fix permissions of tarballs in native source packages
authorRaphael Hertzog <hertzog@debian.org>
Fri, 25 Apr 2008 12:08:17 +0000 (14:08 +0200)
committerRaphael Hertzog <hertzog@debian.org>
Fri, 25 Apr 2008 12:08:17 +0000 (14:08 +0200)
* scripts/Dpkg/Source/Package/V3_0/native.pm: Fix permissions of
generated tarballs to "666 & ~umask()".

ChangeLog
debian/changelog
scripts/Dpkg/Source/Package/V3_0/native.pm

index 08c89e7e1b363681b1e0aee41419573f592fc2a0..3705c6b88e5751d9f86b5d3ec0bff23993eafd94 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-25  Raphael Hertzog  <hertzog@debian.org>
+
+       * scripts/Dpkg/Source/Package/V3_0/native.pm: Fix permissions of
+       generated tarball to "666 & ~umask()".
+
 2008-04-14  Raphael Hertzog  <hertzog@debian.org>
 
        * scripts/Dpkg/Fields.pm (find_custom_field, get_custom_field):
index baf94595d9fc3d7df1e9b6cc21423cfe85163f79..35fd47bf5a475940549b163b764b537526bda59e 100644 (file)
@@ -14,6 +14,8 @@ dpkg (1.14.19) UNRELEASED; urgency=low
   * Fix dpkg-genchanges to detect udeb based on Package-Type control
     header instead of file extension analysis on uploaded files.
     Closes: #476113
+  * Fix dpkg-source to grant correct permissions to tarballs of native
+    source packages. Closes: #477784
   
   [ Helge Kreutzmann ]
   * Minor fixes and clarifications to man pages.
index 1ecd1dfb462994a68d2a89b77feb1f8ff1fb8dc3..16c8a827c6ee8c39c5f75cbe00d64cbb78408b68 100644 (file)
@@ -92,6 +92,8 @@ sub do_build {
     rename($newtar, $tarname) ||
         syserr(_g("unable to rename `%s' (newly created) to `%s'"),
                $newtar, $tarname);
+    chmod(0666 &~ umask(), $tarname) ||
+        syserr(_g("unable to change permission of `%s'"), $tarname);
 
     $self->add_file($tarname);