diff options
Diffstat (limited to 'login/logout.c')
-rw-r--r-- | login/logout.c | 2 |
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. */ |