projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9b349cb
)
Set errno in the correct way.
author
drepper
<drepper>
Wed, 9 Jun 1999 12:01:25 +0000
(12:01 +0000)
committer
drepper
<drepper>
Wed, 9 Jun 1999 12:01:25 +0000
(12:01 +0000)
shadow/fgetspent_r.c
patch
|
blob
|
history
diff --git
a/shadow/fgetspent_r.c
b/shadow/fgetspent_r.c
index
50d1fd9
..
a61483c
100644
(file)
--- 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
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;
{
funlockfile (stream);
*result = NULL;
- return errno = ERANGE;
+ __set_errno (ERANGE);
+ return errno;
}
/* Skip leading blanks. */
}
/* Skip leading blanks. */