summaryrefslogtreecommitdiff
path: root/source/n/bsd-finger/bsd-finger-0.17-rfc742.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/bsd-finger/bsd-finger-0.17-rfc742.patch')
-rw-r--r--source/n/bsd-finger/bsd-finger-0.17-rfc742.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/n/bsd-finger/bsd-finger-0.17-rfc742.patch b/source/n/bsd-finger/bsd-finger-0.17-rfc742.patch
new file mode 100644
index 00000000..b6dfdc7c
--- /dev/null
+++ b/source/n/bsd-finger/bsd-finger-0.17-rfc742.patch
@@ -0,0 +1,15 @@
+--- bsd-finger-0.17-pre20000412/fingerd/fingerd.c.rfc742 Sat Jul 22 14:58:58 2000
++++ bsd-finger-0.17-pre20000412/fingerd/fingerd.c Sat Jul 22 15:01:31 2000
+@@ -214,7 +214,11 @@
+ av[k++] = "finger";
+ for (s = strtok(line, WS); s && k<ENTRIES; s = strtok(NULL, WS)) {
+ /* RFC742: "/[Ww]" == "-l" */
+- if (!strncasecmp(s, "/w", 2)) memcpy(s, "-l", 2);
++ if (!strncasecmp(s, "/w", 2)) {
++ if (k < ENTRIES - 1)
++ av[k++] = "-l";
++ s += 2;
++ }
+ if (!forwarding) {
+ t = strchr(s, '@');
+ if (t) {