Replace whoami by getpwuid (#1750)
This commit is contained in:
parent
cf297736b5
commit
2c86fdfffa
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user