The following commit has been merged in the master branch:
commit 9da624fa100858e838c996cfdc44661c1e2f4050
Author: Raphael Hertzog <[EMAIL PROTECTED]>
Date:   Fri Apr 25 14:08:17 2008 +0200

    dpkg-source: fix permissions of tarballs in native source packages
    
    * scripts/Dpkg/Source/Package/V3_0/native.pm: Fix permissions of
    generated tarballs to "666 & ~umask()".

diff --git a/ChangeLog b/ChangeLog
index 08c89e7..3705c6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-25  Raphael Hertzog  <[EMAIL PROTECTED]>
+
+       * scripts/Dpkg/Source/Package/V3_0/native.pm: Fix permissions of
+       generated tarball to "666 & ~umask()".
+
 2008-04-14  Raphael Hertzog  <[EMAIL PROTECTED]>
 
        * scripts/Dpkg/Fields.pm (find_custom_field, get_custom_field):
diff --git a/debian/changelog b/debian/changelog
index baf9459..35fd47b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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.
diff --git a/scripts/Dpkg/Source/Package/V3_0/native.pm 
b/scripts/Dpkg/Source/Package/V3_0/native.pm
index 1ecd1df..16c8a82 100644
--- a/scripts/Dpkg/Source/Package/V3_0/native.pm
+++ b/scripts/Dpkg/Source/Package/V3_0/native.pm
@@ -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);
 

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to