Replace whoami by getpwuid (#1750)

This commit is contained in:
Xavier 2019-05-15 06:11:27 +02:00
parent cf297736b5
commit 2c86fdfffa

View File

@ -250,7 +250,7 @@ sub _save {
$saveParams->{cfgNum} = $self->cfgNum;
$saveParams->{cfgNumFixed} = 1;
}
$new->{cfgAuthor} = 'lmConfigEditor: ' . `whoami`;
$new->{cfgAuthor} = 'lmConfigEditor: ' . scalar( getpwuid $< );
chomp $new->{cfgAuthor};
$new->{cfgAuthorIP} = '127.0.0.1';
$new->{cfgDate} = time;