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:
1c7a05b
)
(__getmntent_r): Don't return with locked stream.
author
drepper
<drepper>
Wed, 8 Jul 1998 22:32:19 +0000
(22:32 +0000)
committer
drepper
<drepper>
Wed, 8 Jul 1998 22:32:19 +0000
(22:32 +0000)
misc/mntent_r.c
patch
|
blob
|
history
diff --git
a/misc/mntent_r.c
b/misc/mntent_r.c
index
9567a6f
..
94b1d15
100644
(file)
--- a/
misc/mntent_r.c
+++ b/
misc/mntent_r.c
@@
-57,7
+57,10
@@
__getmntent_r (FILE *stream, struct mntent *mp, char *buffer, int bufsiz)
char *end_ptr;
if (fgets_unlocked (buffer, bufsiz, stream) == NULL)
- return NULL;
+ {
+ funlockfile (stream);
+ return NULL;
+ }
end_ptr = strchr (buffer, '\n');
if (end_ptr != NULL) /* chop newline */