projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e33b438
)
(getutline_r): When we return ESRCH, mark UTMP_DATA->ubuf invalid (by setting UTMP_...
author
Miles Bader
<miles@gnu.org>
Fri, 5 Jul 1996 23:48:41 +0000
(23:48 +0000)
committer
Miles Bader
<miles@gnu.org>
Fri, 5 Jul 1996 23:48:41 +0000
(23:48 +0000)
login/getutline_r.c
patch
|
blob
|
history
diff --git
a/login/getutline_r.c
b/login/getutline_r.c
index
0956164
..
965d46c
100644
(file)
--- a/
login/getutline_r.c
+++ b/
login/getutline_r.c
@@
-47,6
+47,7
@@
getutline_r (const struct utmp *line, struct utmp **utmp,
if (read (utmp_data->ut_fd, &utmp_data->ubuf, sizeof (struct utmp))
!= sizeof (struct utmp))
{
+ utmp_data->loc_utmp = 0; /* Mark UTMP_DATA->ubuf invalid. */
errno = ESRCH;
return -1;
}