diff options
author | Guillem Jover <guillem@debian.org> | 2013-08-18 12:20:26 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-10-17 08:16:29 +0200 |
commit | 2fa8794747f12312cba6333f8d06c3229f23c469 (patch) | |
tree | aef7f41b62d36aee1a5c6a7cc24c4b3437afeba0 /dpkg-deb/main.c | |
parent | bd58cab620d35bd34021578c97904921cdca45bd (diff) | |
download | dpkg-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.c | 2 |
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(); |