about summary refs log tree commit diff
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 8a406c01ca..9a87fe4e3f 100644
--- a/login/logout.c
+++ b/login/logout.c
@@ -30,7 +30,7 @@ logout (const char *line)
   int result = 0;
 
   /* Tell that we want to use the UTMP file.  */
-  if (utmpname (_PATH_UTMP) == 0)
+  if (utmpname (_PATH_UTMP) == -1)
     return 0;
 
   /* Open UTMP file.  */