Subject: Added a cookie for RFC931 username

From: [email-masked] (Koos van den Hout _U nix and we all_)
Date: Mon, 27 Feb 1995 10:24:08 +0000 (WET)

My first post to the wu-ftpd is a small diff which I made to the wu-ftpd
source. Quite an entrance but it adds something which I really looked for
in wu-ftpd.

The diff adds a cookie '%u' to extensions.c which will show the RFC931 remote
username when available. I somehow like it to have the remote user see we
take the 'all actions are logged' line seriously.

The diff is relative to wu-ftpd-2.4.linux, a version adopted to Linux I found
on one of the Linux ftp sites. It's a diff -c.

*** extensions.c.orig	Mon Feb 27 09:58:56 1995
--- extensions.c	Mon Feb 27 10:03:22 1995
***************
*** 69,74 ****
--- 69,75 ----
  extern int fnmatch(),
    type,
    transflag,
+   authenticated,
    autospout_free,
    data,
    anonymous,
***************
*** 77,82 ****
--- 78,84 ----
   *globerr,
    remotehost[],
    hostname[],
+   authuser[],
   *autospout,
    Shutdown[];
  
***************
*** 210,215 ****
--- 212,223 ----
                  strncpy(outptr, denytime, 24);
                  *(outptr + 24) = (char) NULL;
                  break;
+ 
+ 						/* KH : cookie %u for RFC931 name */
+ 			case 'u':
+ 				if (authenticated) strncpy(outptr, authuser, 24);
+ 				else strcpy(outptr,"UNKNOWN");
+ 				break;
  
              case '%':
                  *outptr++ = '%';

If someone already has done this for wu-ftpd then I'm just thankful somebody
did it.

                                                 Grtx. KH

-- 
| Koos van den Hout,     Unixer, Internetter                    and BBS SysOp |
| Home:[email-masked]      BBS Koos z'n Doos (+31-3402-36647 28k8 vfc) |
| Work:[email-masked] * finger [email-masked] for PGPkey * (+31-3402-56619 14k4) |
| URL: http://www.hvu.nl/users/koos  I'm looking for a lic.plate with RFC 822 |
|   GCS d- p(-) c++(+++) l+ u+++ e++ m+(-) s+/- !n h f+ g+ w(++) t+ r !y(*)   |