diff options
author | Miles Bader <miles@gnu.org> | 1996-07-05 23:48:41 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-07-05 23:48:41 +0000 |
commit | eb6c848027361474049fbd068df6025492845a2b (patch) | |
tree | a259549560cbe9c0a01523b47e5b61448e59fe2a /login | |
parent | e33b438a8456aecf60a661ee75ac5977a7b49815 (diff) | |
download | glibc-eb6c848027361474049fbd068df6025492845a2b.tar glibc-eb6c848027361474049fbd068df6025492845a2b.tar.gz glibc-eb6c848027361474049fbd068df6025492845a2b.tar.bz2 glibc-eb6c848027361474049fbd068df6025492845a2b.zip |
(getutline_r): When we return ESRCH, mark UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
Diffstat (limited to 'login')
-rw-r--r-- | login/getutline_r.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/login/getutline_r.c b/login/getutline_r.c index 0956164eab..965d46ce8f 100644 --- 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; } |