From: Raphael Hertzog Date: Fri, 25 Apr 2008 12:08:17 +0000 (+0200) Subject: dpkg-source: fix permissions of tarballs in native source packages X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9da624fa100858e838c996cfdc44661c1e2f4050;p=dpkg 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 08c89e7e..3705c6b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-25 Raphael Hertzog + + * scripts/Dpkg/Source/Package/V3_0/native.pm: Fix permissions of + generated tarball to "666 & ~umask()". + 2008-04-14 Raphael Hertzog * scripts/Dpkg/Fields.pm (find_custom_field, get_custom_field): diff --git a/debian/changelog b/debian/changelog index baf94595..35fd47bf 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 1ecd1dfb..16c8a827 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);