The following commit has been merged in the master branch:
commit 609294de1074556ac6194fff7ddbfef0fec80841
Author: Raphael Hertzog <[email protected]>
Date: Sun Apr 19 22:05:34 2009 +0200
dpkg-source: do not store user/group names in generated tarballs
Do not store usernames and group names when creating tarballs
and use numeric UID/GID 0 instead. This concerns native source packages,
debian tarballs in "3.0 (quilt)" source packages, and any other source
format creating new tarballs with Dpkg::Source::Archive.
diff --git a/debian/changelog b/debian/changelog
index 49395b7..85fef5b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -61,6 +61,8 @@ dpkg (1.15.1) UNRELEASED; urgency=low
not going to be included in the debian tarball of a "3.0 (quilt)" source
package. Closes: #524375
* Bump Standards-Version to 3.8.1 (no change required).
+ * Do not store usernames and group names in tarballs created by dpkg-source,
+ they are anyway ignored at unpack time. Closes: #523184
[ Guillem Jover ]
* Fix typo in dpkg output (‘unexecpted’ → ‘unexpected’). Closes: #519082
diff --git a/scripts/Dpkg/Source/Archive.pm b/scripts/Dpkg/Source/Archive.pm
index c338af4..4b7362d 100644
--- a/scripts/Dpkg/Source/Archive.pm
+++ b/scripts/Dpkg/Source/Archive.pm
@@ -45,7 +45,8 @@ sub create {
$fork_opts{"to_handle"} = $self->open_for_write();
$fork_opts{"from_pipe"} = \$self->{'tar_input'};
# Call tar creation process
- $fork_opts{'exec'} = [ 'tar', '--null', '-T', '-',
+ $fork_opts{'exec'} = [ 'tar', '--null', '-T', '-', '--numeric-owner',
+ '--owner', '0', '--group', '0',
@{$opts{"options"}}, '-cf', '-' ];
$self->{"pid"} = fork_and_exec(%fork_opts);
$self->{"cwd"} = getcwd();
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]