From 9da624fa100858e838c996cfdc44661c1e2f4050 Mon Sep 17 00:00:00 2001 From: Raphael Hertzog Date: Fri, 25 Apr 2008 14:08:17 +0200 Subject: [PATCH] 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()". --- ChangeLog | 5 +++++ debian/changelog | 2 ++ scripts/Dpkg/Source/Package/V3_0/native.pm | 2 ++ 3 files changed, 9 insertions(+) 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); -- 2.39.5