Kludge to workaround ftp coredumping when password is specified before

login in .netrc.

Submitted by:	John Kohl
This commit is contained in:
David Greenman 1994-09-18 04:09:28 +00:00
parent 061c9be80f
commit 63f5112ede
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2843

View File

@ -144,7 +144,7 @@ next:
}
break;
case PASSWD:
if (strcmp(*aname, "anonymous") &&
if ((*aname == NULL || strcmp(*aname, "anonymous")) &&
fstat(fileno(cfile), &stb) >= 0 &&
(stb.st_mode & 077) != 0) {
warnx("Error: .netrc file is readable by others.");