summaryrefslogtreecommitdiff
path: root/dpkg-deb/main.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2013-08-18 12:20:26 +0200
committerGuillem Jover <guillem@debian.org>2013-10-17 08:16:29 +0200
commit2fa8794747f12312cba6333f8d06c3229f23c469 (patch)
treeaef7f41b62d36aee1a5c6a7cc24c4b3437afeba0 /dpkg-deb/main.c
parentbd58cab620d35bd34021578c97904921cdca45bd (diff)
downloaddpkg-2fa8794747f12312cba6333f8d06c3229f23c469.tar.gz
libdpkg: Reset environment variables for all compressors in the filter
This makes sure the commands will not produce strange output due to environment settings. The cleaned environment variables are XZ_DEFAULTS, XZ_OPT, BZIP and BZIP2, depending on the compressor used. Move GZIP environment variable cleanup to libdpkg, as there's nothing inherently dpkg-deb specific in resetting the environment variables for a specific compressor so that the output is reproducible and a bit more consistent with the code using the specific compressor library.
Diffstat (limited to 'dpkg-deb/main.c')
-rw-r--r--dpkg-deb/main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/dpkg-deb/main.c b/dpkg-deb/main.c
index 932e663e3..e903ce490 100644
--- a/dpkg-deb/main.c
+++ b/dpkg-deb/main.c
@@ -264,8 +264,6 @@ int main(int argc, const char *const *argv) {
if (!compressor_check_params(&compress_params, &err))
badusage(_("invalid compressor parameters: %s"), err.str);
- unsetenv("GZIP");
-
ret = cipaction->action(argv);
dpkg_program_done();