From 00ced4001b769e6f0c9c1dab7d43802bb6be36d4 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 11 Apr 2021 12:29:29 +0000 Subject: Add WTMP_FILE; make getutx*() stay on found record --- src/include/utmps/utmpx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/utmps/utmpx.h b/src/include/utmps/utmpx.h index dd68945..f0414fb 100644 --- a/src/include/utmps/utmpx.h +++ b/src/include/utmps/utmpx.h @@ -67,8 +67,9 @@ extern void logwtmp (char const *, char const *, char const *) ; #define UT_NAMESIZE UTMPS_UT_NAMESIZE #define UT_HOSTSIZE UTMPS_UT_HOSTSIZE -/* Unused, but some packages (ex: procps-ng) require this macro to be present */ +/* Unused, but some packages (ex: procps-ng) require these macros to be present */ #define UTMPX_FILE "/run/utmps/utmp" +#define WTMPX_FILE "/run/utmps/wtmp" /* More old GNU/crap compatibility */ #define ut_name ut_user -- cgit 1.4.1