From: Don Armstrong Date: Thu, 4 Dec 2008 03:53:28 +0000 (-0800) Subject: sanitize path before calling hostname X-Git-Tag: release/2.6.0~467^2~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5f3ce2e1a82c0ca1373c79f40f464bbc8a10d4f7;p=debbugs.git sanitize path before calling hostname --- diff --git a/Debbugs/Config.pm b/Debbugs/Config.pm index f4f0471..2b34c66 100644 --- a/Debbugs/Config.pm +++ b/Debbugs/Config.pm @@ -288,8 +288,10 @@ Default: qx(hostname --fqdn) =cut +my $_old_path = $ENV{PATH}; +$ENV{PATH} = '/bin:/usr/bin:/usr/local/bin'; set_default(\%config,'machine_name',qx(hostname --fqdn)); - +$ENV{PATH} = $_old_path; =head2 BTS Mailing Lists