view x11/sessreg/wtmpx.patch @ 586:1218a8f753b6

core/busybox: let's re-add /etc/inittab support While busybox has weird /etc/inittab support the predefined actions without it are too minimalistic so re-add the support for it but don't install an /etc/inittab file. The file /etc/inittab file is still installed with sysvinit but if someone wants to use busybox's init it should create its own /etc/inittab file with the busybox syntax and do not install sysvinit afterwards.
author David Demelier <markand@malikania.fr>
date Mon, 08 Jul 2019 20:35:00 +0200
parents ec821c24b574
children
line wrap: on
line source

diff -Naur sessreg-1.0.8.orig/sessreg.h sessreg-1.0.8/sessreg.h
--- sessreg-1.0.8.orig/sessreg.h	2013-02-10 21:43:50.000000000 -0500
+++ sessreg-1.0.8/sessreg.h	2014-06-18 10:02:17.769459663 -0400
@@ -106,3 +106,8 @@
 #ifndef UTMPX_FILE
 # define UTMPX_FILE	_PATH_UTMPX
 #endif
+
+#ifndef _PATH_WTMPX
+# define _PATH_WTMPX	"/var/log/wtmp"
+#endif
+
diff --git a/sessreg.h b/sessreg.h
index b3bbac9..d0c0105 100644
--- a/sessreg.h
+++ b/sessreg.h
@@ -114,3 +114,7 @@
 # define _PATH_WTMPX	"/var/log/wtmp"
 #endif
 
+#ifndef _PATH_UTMPX
+# define _PATH_UTMPX    "/var/log/utmp"
+#endif
+