mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
2003-10-27 Ulrich Drepper <drepper@redhat.com> * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip rest of line. We use getline which means this cannot happen.
This commit is contained in:
@ -848,15 +848,6 @@ __validuser2_sa(hostf, ra, ralen, luser, ruser, rhost)
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Skip lines that are too long. */
|
||||
if (strchr (p, '\n') == NULL) {
|
||||
int ch = getc_unlocked (hostf);
|
||||
|
||||
while (ch != '\n' && ch != EOF)
|
||||
ch = getc_unlocked (hostf);
|
||||
continue;
|
||||
}
|
||||
|
||||
for (;*p && !isspace(*p); ++p) {
|
||||
*p = _tolower (*p);
|
||||
}
|
||||
|
Reference in New Issue
Block a user