From: drepper Date: Wed, 9 Jun 1999 12:01:25 +0000 (+0000) Subject: Set errno in the correct way. X-Git-Tag: glibc_2-1-91~8217 X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=commitdiff_plain;h=a08e1f01b7c3d3394b884ca22d4767bfc30bf6e5;hp=9b349cb11b69e8ad77b2d82a7b4dbd30486cfdea Set errno in the correct way. --- diff --git a/shadow/fgetspent_r.c b/shadow/fgetspent_r.c index 50d1fd9972..a61483c95a 100644 --- a/shadow/fgetspent_r.c +++ b/shadow/fgetspent_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 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 @@ -59,7 +59,8 @@ __fgetspent_r (FILE *stream, struct spwd *resbuf, char *buffer, size_t buflen, { funlockfile (stream); *result = NULL; - return errno = ERANGE; + __set_errno (ERANGE); + return errno; } /* Skip leading blanks. */