From: Ulrich Drepper Date: Mon, 27 Oct 2003 08:44:53 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_3_3~104 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=11df531f59482469dd5482e8d397d89ce4acd6f5;p=thirdparty%2Fglibc.git Update. 2003-10-27 Ulrich Drepper * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip rest of line. We use getline which means this cannot happen. --- diff --git a/ChangeLog b/ChangeLog index 14d5e315872..4c3e8a2513e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-10-27 Ulrich Drepper + + * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip + rest of line. We use getline which means this cannot happen. + 2003-10-26 Ulrich Drepper * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs): diff --git a/inet/rcmd.c b/inet/rcmd.c index ad72108b6a3..d9645a38a61 100644 --- a/inet/rcmd.c +++ b/inet/rcmd.c @@ -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); }