The following commit has been merged in the master branch:
commit 24f7107e9815e90931fbccd1299757494431dd75
Author: Guillem Jover <[email protected]>
Date: Thu May 28 14:33:53 2009 +0200
Unset TAR_OPTIONS when extracting .deb archives
We don't want the extraction to be affected by user settable environment
variables either. The command line tool is considered an interface for
which we want as much control as possible to guarantee no unintentional
behaviour changes to the format or they way it's being handled.
Closes: #530860
diff --git a/debian/changelog b/debian/changelog
index 2b59d74..b8d3a44 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,6 @@
dpkg (1.15.3) UNRELEASED; urgency=low
- *
+ * Unset TAR_OPTIONS when extracting .deb archives. Closes: #530860
-- Guillem Jover <[email protected]> Tue, 26 May 2009 01:26:04 +0200
diff --git a/dpkg-deb/extract.c b/dpkg-deb/extract.c
index d7be0de..5cc6660 100644
--- a/dpkg-deb/extract.c
+++ b/dpkg-deb/extract.c
@@ -312,6 +312,9 @@ void extracthalf(const char *debar, const char *directory,
strcat(buffer, "f");
m_dup2(p2[0],0);
close(p2[0]);
+
+ unsetenv("TAR_OPTIONS");
+
execlp(TAR, "tar", buffer, "-", NULL);
ohshite(_("failed to exec tar"));
}
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]