mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
And use POSIX::uname for the hostname
svn path=/trunk/netsurf/; revision=12061
This commit is contained in:
parent
6d2a7a3495
commit
775a139103
@ -78,7 +78,7 @@ $testament .= "#define GECOS \"$userinfo{GECOS}\"\n";
|
||||
my $qroot = $root;
|
||||
$qroot =~ s/"/\\"/g;
|
||||
|
||||
my $hostname = $ENV{HOSTNAME};
|
||||
my $hostname = POSIX::uname()[1];
|
||||
|
||||
if ( !defined ( $hostname ) ) { # Try hostname command if env-var empty
|
||||
$hostname = `hostname`;
|
||||
|
Loading…
Reference in New Issue
Block a user