fix #455707 traptoemail use FQDN

Gbp-Pq: Name 0027-fix-455707-traptoemail-use-FQDN.patch
This commit is contained in:
Hideki Yamane 2016-01-29 20:54:57 +09:00 committed by Lu zhiping
parent e709391ab6
commit 39e66f80fb
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ use POSIX qw(strftime);
$ENV{LANG} = 'C';
$opts{'s'} = "localhost";
$opts{'f'} = 'root@' . `hostname`;
$opts{'f'} = 'root@' . `hostname -f`;
chomp($opts{'f'});
getopts("hs:f:", \%opts);