Blame SOURCES/bsd-finger-0.17-rfc742.patch
|
|
d77ab8 |
--- bsd-finger-0.17-pre20000412/fingerd/fingerd.c.rfc742 Sat Jul 22 14:58:58 2000
|
|
|
d77ab8 |
+++ bsd-finger-0.17-pre20000412/fingerd/fingerd.c Sat Jul 22 15:01:31 2000
|
|
|
d77ab8 |
@@ -214,7 +214,11 @@
|
|
|
d77ab8 |
av[k++] = "finger";
|
|
|
d77ab8 |
for (s = strtok(line, WS); s && k
|
|
|
d77ab8 |
/* RFC742: "/[Ww]" == "-l" */
|
|
|
d77ab8 |
- if (!strncasecmp(s, "/w", 2)) memcpy(s, "-l", 2);
|
|
|
d77ab8 |
+ if (!strncasecmp(s, "/w", 2)) {
|
|
|
d77ab8 |
+ if (k < ENTRIES - 1)
|
|
|
d77ab8 |
+ av[k++] = "-l";
|
|
|
d77ab8 |
+ s += 2;
|
|
|
d77ab8 |
+ }
|
|
|
d77ab8 |
if (!forwarding) {
|
|
|
d77ab8 |
t = strchr(s, '@');
|
|
|
d77ab8 |
if (t) {
|