Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ftp Don't use the local username as the default anon...



details:   https://anonhg.NetBSD.org/src/rev/2c573486075c
branches:  trunk
changeset: 360018:2c573486075c
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Mar 04 19:57:41 2018 +0000

description:
Don't use the local username as the default anonftp password.

once upon a time doing this was part of the social glue that held the
community together, but that was a long time ago, and now it's just an
information leak.

proposed on tech-userlevel in 2008, then apparently forgotten :-|

diffstat:

 usr.bin/ftp/main.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 7b4dd9193e98 -r 2c573486075c usr.bin/ftp/main.c
--- a/usr.bin/ftp/main.c        Sun Mar 04 19:23:33 2018 +0000
+++ b/usr.bin/ftp/main.c        Sun Mar 04 19:57:41 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.124 2017/11/25 15:39:17 christos Exp $      */
+/*     $NetBSD: main.c,v 1.125 2018/03/04 19:57:41 dholland Exp $      */
 
 /*-
  * Copyright (c) 1996-2015 The NetBSD Foundation, Inc.
@@ -98,7 +98,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.6 (Berkeley) 10/9/94";
 #else
-__RCSID("$NetBSD: main.c,v 1.124 2017/11/25 15:39:17 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.125 2018/03/04 19:57:41 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -464,7 +464,6 @@
                if (localhome == NULL && !EMPTYSTRING(pw->pw_dir))
                        localhome = ftp_strdup(pw->pw_dir);
                localname = ftp_strdup(pw->pw_name);
-               anonuser = localname;
        }
        if (netrc[0] == '\0' && localhome != NULL) {
                if (strlcpy(netrc, localhome, sizeof(netrc)) >= sizeof(netrc) ||



Home | Main Index | Thread Index | Old Index