Fix finger not check all users ~/.nofinger, only for actually
matched. Close PR 539 Submitted by: tom@haven.uniserve.com
This commit is contained in:
parent
cd236828a0
commit
0f4b3165a0
@ -261,10 +261,8 @@ userlist(argc, argv)
|
||||
"finger: %s: no such user\n", *p);
|
||||
else {
|
||||
while (pw = getpwent()) {
|
||||
if (hide (pw))
|
||||
continue;
|
||||
for (p = argv, ip = used; *p; ++p, ++ip)
|
||||
if (match(pw, *p)) {
|
||||
if (match(pw, *p) && !hide(pw)) {
|
||||
enter_person(pw);
|
||||
*ip = 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user