* Changed all invocations of programs to be in posix-complient form. Ie,

no options after args, so people who set POSIX_ME_HARDER can still use
     alien.
   * Bahave better if there is no /etc/mailname.
This commit is contained in:
joey
2000-05-22 23:23:32 +00:00
parent 141d85af7a
commit 71a8666dd8
3 changed files with 16 additions and 5 deletions

View File

@@ -545,10 +545,12 @@ sub email {
return $ENV{EMAIL} if exists $ENV{EMAIL};
my $login = getlogin || (getpwuid($<))[0] || $ENV{USER};
open (MAILNAME,"</etc/mailname");
my $mailname=<MAILNAME>;
chomp $mailname;
close MAILNAME;
myt $mailname='';
if (open (MAILNAME,"</etc/mailname")) {
$mailname=<MAILNAME>;
chomp $mailname;
close MAILNAME;
}
if (!$mailname) {
$mailname=`hostname -f`;
chomp $mailname;