[SCM] Debian package checker branch, master, updated. 2.5.4-159-ga533b9a
The following commit has been merged in the master branch:
commit a533b9a0277623b4f582a12ac3228e5416391a54
Author: Niels Thykier <niels@thykier.net>
Date: Thu Feb 9 20:58:24 2012 +0100
checks/infofiles: Use clean_env after fork
Signed-off-by: Niels Thykier <niels@thykier.net>
diff --git a/checks/infofiles b/checks/infofiles
index 6f9da14..2e5f016 100644
--- a/checks/infofiles
+++ b/checks/infofiles
@@ -89,10 +89,8 @@ foreach my $file (@{$info->sorted_index}) {
fail("cannot fork: $!");
} elsif ($pid == 0) {
my $f = quotemeta($info->unpacked($file));
- my %newenv = (LC_ALL => 'C', PATH => $ENV{PATH},
- LOCPATH => $ENV{LOCPATH});
- undef %ENV;
- %ENV = %newenv;
+ clean_env(1);
+ $ENV{LC_ALL} = 'C';
exec "zcat $f 2>&1"
or fail("cannot run zcat: $!");
}
--
Debian package checker
Reply to: