Loading...
--- Libc/Libc-583/util/logout.c
+++ Libc/Libc-498/util/logout.c
@@ -81,14 +81,11 @@
strncpy(utx.ut_line, line, sizeof(utx.ut_line));
utx.ut_type = UTMPX_AUTOFILL_MASK | UTMPX_DEAD_IF_CORRESPONDING_MASK | DEAD_PROCESS;
(void)gettimeofday(&utx.ut_tv, NULL);
- UTMPX_LOCK;
- _setutxent();
+ setutxent();
ux = _pututxline(&utx);
- _endutxent();
- if (!ux) {
- UTMPX_UNLOCK;
+ endutxent();
+ if (!ux)
return 0;
- }
#ifdef UTMP_COMPAT
if (utfile_system) { /* only if we are using _PATH_UTMPX */
which = _utmp_compat(ux, &u);
@@ -98,6 +95,5 @@
_write_utmp(&u, 1);
}
#endif /* UTMP_COMPAT */
- UTMPX_UNLOCK;
return 1;
}