DO NOT WANT! you can already suppress the userid by setting the USER environment variable, and the server operator gets your ip and/or hostname in the logs already... if you must do something like this, make lynx honor the HOST variable.
On Sat, Nov 22, 2008 at 3:08 PM, Dieter Rauschenberger <[EMAIL PROTECTED]> wrote: > Hi, > > I found the following diff > http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=lynx_nospam.diff;att=1;bug=137480 > > It makes lynx to use anonymous@ instead of [EMAIL PROTECTED] as password for > anonymous ftp connections. > > Testet on i386 with OpenBSD 4.4 (sorry, no -current around). > > Regards > Dieter > Index: HTFTP.c > =================================================================== > RCS file: /cvs/src/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFTP.c,v > retrieving revision 1.7 > diff -u -p -r1.7 HTFTP.c > --- HTFTP.c 22 Jun 2004 04:01:42 -0000 1.7 > +++ HTFTP.c 22 Nov 2008 22:55:00 -0000 > @@ -863,44 +863,16 @@ PRIVATE int get_connection ARGS2( > HTSprintf0(&command, "PASS %s%c%c", password, CR, LF); > } else { > /* > - * Create and send a mail address as the password. - FM > + * Send an anonymous ftp password. - FM > + * If there is no anonymous ftp password specified > + * then we'll just use anonymous@ > + * We don't send any other thing because: > + * - We want to remain anonymous > + * - We want to stop SPAM > + * - We don't want to let ftp sites to discriminate by the user, > + * host or country. > */ > - char *user = NULL; > - CONST char *host = NULL; > - char * cp; > - > - if (personal_mail_address && *personal_mail_address) { > - /* > - * We have a non-zero length personal > - * mail address, so use that. - FM > - */ > - StrAllocCopy(user, personal_mail_address); > - if ((cp=strchr(user, '@')) != NULL) { > - *cp++ = '\0'; > - host = cp; > - } else { > - host = HTHostName(); > - } > - } else { > - /* > - * Use an environment variable and the host global. - FM > - */ > - if ((cp=LYGetEnv("USER")) != NULL) > - StrAllocCopy(user, cp); > - else > - StrAllocCopy(user, "WWWuser"); > - host = HTHostName(); > - } > - > - /* > - * If host is not fully qualified, suppress it > - * as ftp.uu.net prefers a blank to a bad name > - */ > - if (!(host) || strchr(host, '.') == NULL) > - host = ""; > - > - HTSprintf0(&command, "PASS [EMAIL PROTECTED]", user, host, CR, > LF); > - FREE(user); > + HTSprintf0(&command, "PASS [EMAIL PROTECTED]", CR, LF); > } > status = response(command); > FREE(command); > > -- GDB has a 'break' feature; why doesn't it have 'fix' too?

