$NetBSD: patch-ac,v 1.3 2016/05/01 19:59:28 dholland Exp $ utmpx handling fixes. --- src/utmp.c.orig Sat May 4 08:40:45 2002 +++ src/utmp.c @@ -186,7 +186,11 @@ } } +#ifdef HAVE_UTMPX_H + utmpxname(UTMP_FILENAME); +#else utmpname(UTMP_FILENAME); +#endif setutent(); /* XXX: should be unnecessaray */ @@ -265,7 +269,11 @@ if (!ut_id[0]) return; /* entry not made */ +#ifdef HAVE_UTMPX_H + utmpxname(UTMP_FILENAME); +#else utmpname(UTMP_FILENAME); +#endif MEMSET(&utmp, 0, sizeof(UTMP)); STRNCPY(utmp.ut_id, ut_id, sizeof(utmp.ut_id)); utmp.ut_type = USER_PROCESS;