summaryrefslogtreecommitdiff
path: root/src/shutdown/s6-linux-init-hpr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shutdown/s6-linux-init-hpr.c')
-rw-r--r--src/shutdown/s6-linux-init-hpr.c6
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 ]"