X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=blobdiff_plain;f=Debbugs%2FConfig.pm;h=f70860452e042af31667570c5ccb3aa418044314;hp=4cc7e9d2895510b91100aeedd2e8f11805e9fbcb;hb=13abe0d0226a325d3da6db062b05ec7d3eee7bcb;hpb=d48c173bfd2ba6267b71cbfeb3c3eae14f18f79e diff --git a/Debbugs/Config.pm b/Debbugs/Config.pm index 4cc7e9d..f708604 100644 --- a/Debbugs/Config.pm +++ b/Debbugs/Config.pm @@ -87,6 +87,7 @@ BEGIN { $ENV{HOME} = '' if not defined $ENV{HOME}; } +use Sys::Hostname; use File::Basename qw(dirname); use IO::File; use Safe; @@ -298,18 +299,13 @@ set_default(\%config,'unknown_maintainer_email',$config{maintainer_email}); The name of the machine that this instance of debbugs is running on (currently used for debbuging purposes and web page output.) -Default: qx(hostname --fqdn) +Default: Sys::Hostname::hostname() =back =cut -my $_old_path = $ENV{PATH}; -$ENV{PATH} = '/bin:/usr/bin:/usr/local/bin'; -my $temp_hostname = qx(hostname --fqdn); -chomp $temp_hostname; -set_default(\%config,'machine_name',$temp_hostname); -$ENV{PATH} = $_old_path; +set_default(\%config,'machine_name',Sys::Hostname::hostname()); =head2 BTS Mailing Lists