Avoid using hostname -f for portability to unix systems, such as Solaris, where any options _set_ the hostname.

This commit is contained in:
Joey Hess
2009-05-29 13:03:17 -04:00
parent bcd8dae206
commit cbf330f982
2 changed files with 8 additions and 1 deletions

View File

@@ -683,7 +683,7 @@ sub email {
close MAILNAME;
}
if (!$mailname) {
$mailname=$this->runpipe(1, "hostname -f");
$mailname=$this->runpipe(1, "hostname");
chomp $mailname;
}
return "$login\@$mailname";