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";

7
debian/changelog vendored
View File

@@ -1,3 +1,10 @@
alien (8.76) UNRELEASED; urgency=low
* Avoid using hostname -f for portability to unix systems,
such as Solaris, where any options _set_ the hostname.
-- Joey Hess <joeyh@debian.org> Fri, 29 May 2009 13:02:54 -0400
alien (8.75) unstable; urgency=low
* Simplified rules file.