Print only the full name from Gecos field. The other fields
(phone, fax etc.) are usually out of date.
This commit is contained in:
parent
46043ba32a
commit
9b34c228bf
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=3231
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ while(<P>) {
|
|||
($login,$passwd,$uid,$gid,$gcos,$home,$shell) = split(/:/);
|
||||
|
||||
# cleanup gecos
|
||||
$gcos =~ s/,+$//;
|
||||
$gcos =~ s/,.*//;
|
||||
|
||||
# disable daemons
|
||||
next if $uid <= 100;
|
||||
|
|
|
@ -11,7 +11,7 @@ while(<P>) {
|
|||
($login,$passwd,$uid,$gid,$gcos,$home,$shell) = split(/:/);
|
||||
|
||||
# cleanup gecos
|
||||
$gcos =~ s/,+$//;
|
||||
$gcos =~ s/,.*//;
|
||||
|
||||
# disable daemons
|
||||
next if $uid <= 100;
|
||||
|
|
Loading…
Reference in a new issue