blob: 6d756dfae35c593b7e104a8f6e98fc5fb6de8a0f (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--- bsd-finger-0.17-pre20000412/finger/finger.c.exact Sat Dec 18 11:41:51 1999
+++ bsd-finger-0.17-pre20000412/finger/finger.c Sun Aug 27 21:17:57 2000
@@ -238,15 +238,14 @@
* traverse the list of possible login names and check the login name
* and real name against the name specified by the user.
*/
- if (mflag) {
- for (i = 0; i < argc; i++)
- if (used[i] >= 0 && (pw = getpwnam(argv[i]))) {
- if (!check_nofinger(pw)) {
- enter_person(pw);
- used[i] = 1;
- }
+ for (i = 0; i < argc; i++)
+ if (used[i] >= 0 && (pw = getpwnam(argv[i]))) {
+ if (!check_nofinger(pw)) {
+ enter_person(pw);
+ used[i] = 1;
}
+ }
- } else for (pw = getpwent(); pw; pw = getpwent())
+ if(!mflag) for (pw = getpwent(); pw; pw = getpwent())
for (i = 0; i < argc; i++)
if (used[i] >= 0 &&
(!strcasecmp(pw->pw_name, argv[i]) ||
|