summaryrefslogtreecommitdiff
path: root/source/n/bsd-finger/bsd-finger-0.17-exact.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/bsd-finger/bsd-finger-0.17-exact.patch')
-rw-r--r--source/n/bsd-finger/bsd-finger-0.17-exact.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/source/n/bsd-finger/bsd-finger-0.17-exact.patch b/source/n/bsd-finger/bsd-finger-0.17-exact.patch
new file mode 100644
index 00000000..6d756dfa
--- /dev/null
+++ b/source/n/bsd-finger/bsd-finger-0.17-exact.patch
@@ -0,0 +1,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]) ||