mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-17 08:00:48 +01:00
Kludge to workaround ftp coredumping when password is specified before
login in .netrc. Submitted by: John Kohl
This commit is contained in:
parent
061c9be80f
commit
63f5112ede
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2843
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user