summaryrefslogtreecommitdiff
path: root/scripts/Dpkg
diff options
context:
space:
mode:
authorRaphael Hertzog <hertzog@debian.org>2008-04-25 14:08:17 +0200
committerRaphael Hertzog <hertzog@debian.org>2008-04-25 14:08:17 +0200
commit9da624fa100858e838c996cfdc44661c1e2f4050 (patch)
treeb4d6d7577de3eaf2d03205122ea5f96c0bfe11fa /scripts/Dpkg
parentb4af9072d807d0b22f2aa17b59c0f164f5e70dc0 (diff)
downloaddpkg-9da624fa100858e838c996cfdc44661c1e2f4050.tar.gz
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()".
Diffstat (limited to 'scripts/Dpkg')
-rw-r--r--scripts/Dpkg/Source/Package/V3_0/native.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Dpkg/Source/Package/V3_0/native.pm b/scripts/Dpkg/Source/Package/V3_0/native.pm
index 1ecd1dfb4..16c8a827c 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);