From fbfde91f6ade1b60f878d862d4809fffb0301914 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 28 Dec 1996 04:44:35 +0000 Subject: [!WTMP_FILE]: Provide default path. (UTMP_FILE) [UTMPX_FILE]: Use UTMPX_FILE in favor of UTMP_FILE. Patch from Kaveh R. Ghazi. --- src/who-users.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/who-users.c b/src/who-users.c index 2cc153bd0..cca8b52cc 100644 --- a/src/who-users.c +++ b/src/who-users.c @@ -55,15 +55,24 @@ #define WTMP_FILE _PATH_WTMP #endif -#if defined (UTMPX_FILE) /* Solaris, SysVr4 */ -#undef UTMP_FILE +#ifdef UTMPX_FILE /* Solaris, SysVr4 */ +#undef UTMP_FILE #define UTMP_FILE UTMPX_FILE #endif +#ifdef WTMPX_FILE /* Solaris, SysVr4 */ +#undef WTMP_FILE +#define WTMP_FILE WTMPX_FILE +#endif + #ifndef UTMP_FILE #define UTMP_FILE "/etc/utmp" #endif +#ifndef WTMP_FILE +#define WTMP_FILE "/etc/wtmp" +#endif + #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 64 #endif -- cgit v1.2.3-70-g09d2