aboutsummaryrefslogtreecommitdiff
path: root/login/logout.c
diff options
context:
space:
mode:
Diffstat (limited to 'login/logout.c')
-rw-r--r--login/logout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login/logout.c b/login/logout.c
index 1b8dc317ff..bf45451eef 100644
--- a/login/logout.c
+++ b/login/logout.c
@@ -44,7 +44,7 @@ logout (const char *line)
strncpy (tmp.ut_line, line, sizeof tmp.ut_line);
/* Read the record. */
- if (getutline_r (&tmp, &ut, &data) >= 0 || errno == ESRCH)
+ if (getutline_r (&tmp, &ut, &data) >= 0)
{
/* Clear information about who & from where. */
bzero (ut->ut_name, sizeof ut->ut_name);