Blame SOURCES/bsd-finger-0.17-exact.patch

c7b137
--- bsd-finger-0.17-pre20000412/finger/finger.c.exact	Sat Dec 18 11:41:51 1999
c7b137
+++ bsd-finger-0.17-pre20000412/finger/finger.c	Sun Aug 27 21:17:57 2000
c7b137
@@ -238,15 +238,14 @@
c7b137
 	 * traverse the list of possible login names and check the login name
c7b137
 	 * and real name against the name specified by the user.
c7b137
 	 */
c7b137
-	if (mflag) {
c7b137
-		for (i = 0; i < argc; i++)
c7b137
-			if (used[i] >= 0 && (pw = getpwnam(argv[i]))) {
c7b137
-				if (!check_nofinger(pw)) {
c7b137
-					enter_person(pw);
c7b137
-					used[i] = 1;
c7b137
-				}
c7b137
+	for (i = 0; i < argc; i++)
c7b137
+		if (used[i] >= 0 && (pw = getpwnam(argv[i]))) {
c7b137
+			if (!check_nofinger(pw)) {
c7b137
+				enter_person(pw);
c7b137
+				used[i] = 1;
c7b137
 			}
c7b137
+		}
c7b137
-	} else for (pw = getpwent(); pw; pw = getpwent())
c7b137
+	if(!mflag) for (pw = getpwent(); pw; pw = getpwent())
c7b137
 		for (i = 0; i < argc; i++)
c7b137
 			if (used[i] >= 0 &&
c7b137
 			    (!strcasecmp(pw->pw_name, argv[i]) ||