Module Name: src
Committed By: dholland
Date: Sun Mar 4 19:57:41 UTC 2018
Modified Files:
src/usr.bin/ftp: main.c
Log Message:
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 :-|
To generate a diff of this commit:
cvs rdiff -u -r1.124 -r1.125 src/usr.bin/ftp/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/ftp/main.c
diff -u src/usr.bin/ftp/main.c:1.124 src/usr.bin/ftp/main.c:1.125
--- src/usr.bin/ftp/main.c:1.124 Sat Nov 25 15:39:17 2017
+++ src/usr.bin/ftp/main.c Sun Mar 4 19:57:41 2018
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1985, 19
#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 @@ main(int volatile argc, char **volatile
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) ||