Stop using the $passwd variable for two different purposes.
This commit is contained in:
parent
c4cf559dd7
commit
9807f7faeb
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=16466
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ $noindex = '.noindex';
|
|||
open(P, 'ypcat passwd |') || die "open $passwd: $!\n";
|
||||
undef @pages;
|
||||
while(<P>) {
|
||||
($login,$passwd,$uid,$gid,$gcos,$home,$shell) = split(/:/);
|
||||
($login,$password,$uid,$gid,$gcos,$home,$shell) = split(/:/);
|
||||
|
||||
# cleanup gecos
|
||||
$gcos =~ s/,.*//;
|
||||
|
|
Loading…
Reference in a new issue