mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Slight adjustment to __ivaliduser() - don't ignore the last line in
the .rhosts file just because there is no ending linefeed.
This commit is contained in:
parent
bd79f8422f
commit
9c8e9b4a14
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58152
@ -562,7 +562,7 @@ __ivaliduser_af(hostf, raddr, luser, ruser, af, len)
|
||||
while (fgets(buf, sizeof(buf), hostf)) {
|
||||
p = buf;
|
||||
/* Skip lines that are too long. */
|
||||
if (strchr(p, '\n') == NULL) {
|
||||
if (strchr(p, '\n') == NULL && !feof(hostf)) {
|
||||
while ((ch = getc(hostf)) != '\n' && ch != EOF);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user