mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
nss_files: Move into libc
This is the first step towards fixing bug 27959. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -40,7 +40,7 @@ __nss_readline (FILE *fp, char *buf, size_t len, off64_t *poffset)
|
||||
*poffset = __ftello64 (fp);
|
||||
|
||||
buf[len - 1] = '\xff'; /* Marker to recognize truncation. */
|
||||
if (fgets_unlocked (buf, len, fp) == NULL)
|
||||
if (__fgets_unlocked (buf, len, fp) == NULL)
|
||||
{
|
||||
if (feof_unlocked (fp))
|
||||
{
|
||||
@ -61,7 +61,7 @@ __nss_readline (FILE *fp, char *buf, size_t len, off64_t *poffset)
|
||||
line on the next call. */
|
||||
return __nss_readline_seek (fp, *poffset);
|
||||
|
||||
/* fgets_unlocked succeeded. */
|
||||
/* __fgets_unlocked succeeded. */
|
||||
|
||||
/* Remove leading whitespace. */
|
||||
char *p = buf;
|
||||
|
Reference in New Issue
Block a user