--- login.c.dist Wed Jul 8 12:40:36 1998 +++ login.c Sat Nov 21 12:50:13 1998 @@ -434,7 +434,6 @@ ux.ut_session = pid; strncpy(ux.ut_host, host, sizeof(ux.ut_host)); ux.ut_host[sizeof(ux.ut_host) - 1] = 0; - ux.ut_syslen = strlen(ux.ut_host); #ifdef HAVE_SYSLEN_IN_UTMPX ux.ut_syslen = strlen(ux.ut_host); #endif @@ -451,7 +450,9 @@ makeutx(&ux); #else pututxline(&ux); +#ifdef WTMPX_FILE updwtmpx(WTMPX_FILE, &ux); +#endif #endif endutxent(); }