From e1c6ee839d13d57a4756e506a6b03f6a82b86d61 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 9 Jun 1999 12:01:54 +0000 Subject: Update. 1999-06-09 Ulrich Drepper * pwd/fgetpwent_r.c: Set errno in the correct way. * shadow/fgetspent_r.c: Likewise. * pwd/fgetpwent.c: Handle long lines correctly. Little optimizations. Free static buffer when debugging memory handling. * shadow/fgetspent.c: Likewise. * grp/fgetgrent.c: Little optimization in loop. 1999-06-09 Andreas Jaeger * grp/tst_fgetgrent.c (write_group): Fix generation of long line in a different way. --- pwd/fgetpwent_r.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pwd/fgetpwent_r.c') diff --git a/pwd/fgetpwent_r.c b/pwd/fgetpwent_r.c index 4986e7452c..c2a746d902 100644 --- a/pwd/fgetpwent_r.c +++ b/pwd/fgetpwent_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1996, 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -92,7 +92,8 @@ __fgetpwent_r (FILE *stream, struct passwd *resbuf, char *buffer, { funlockfile (stream); *result = NULL; - return errno = ERANGE; + __set_errno (ERANGE); + return errno; } /* Skip leading blanks. */ -- cgit v1.2.3