mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
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
43bed81d64
commit
c2ac9540cd
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Reference in a new issue