diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-04-19 11:26:23 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2021-04-19 11:26:23 +0000 |
commit | 9969d7437fa6786782e6c780fbadd6561220ccfe (patch) | |
tree | 0be0d73689929500cab25d32695d6074d41c9c90 /src/shutdown | |
parent | eaeee8195f3347b3fa762a7ddbb0c7eb0ef15133 (diff) | |
download | s6-linux-init-9969d7437fa6786782e6c780fbadd6561220ccfe.tar.xz |
Clean up the wtmp mess
Diffstat (limited to 'src/shutdown')
-rw-r--r-- | src/shutdown/s6-linux-init-hpr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shutdown/s6-linux-init-hpr.c b/src/shutdown/s6-linux-init-hpr.c index 8ebe2d5..a874ac3 100644 --- a/src/shutdown/s6-linux-init-hpr.c +++ b/src/shutdown/s6-linux-init-hpr.c @@ -26,7 +26,11 @@ #endif #ifndef _PATH_WTMP -#define _PATH_WTMP "/dev/null/wtmp" +# ifdef WTMPX_FILE +# define _PATH_WTMP WTMPX_FILE +# else +# define _PATH_WTMP "/var/log/wtmp" +# endif #endif #define USAGE "s6-linux-init-hpr [ -h | -p | -r ] [ -n ] [ -d | -w ] [ -W ] [ -f ] [ -i ]" |