summaryrefslogtreecommitdiffstats
path: root/usr.bin/finger/finger.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/finger/finger.c')
-rw-r--r--usr.bin/finger/finger.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/finger/finger.c b/usr.bin/finger/finger.c
index 3305e9f..bae5fe7 100644
--- a/usr.bin/finger/finger.c
+++ b/usr.bin/finger/finger.c
@@ -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;
}
OpenPOWER on IntegriCloud