projects/aports·blob master · refs

25 lines · 690 B

1From: Jakub Jirutka <[email protected]>
2Date: Mon, 20 Dec 2021 18:52:00 +0100
3Subject: [PATCH] Add support for utmps
4
5The following programs use utmpx.h: last, login, lslogins, agetty, wall, write.
6
7Programs 'su' and 'runuser' include utmpx.h, but use only btmp which is not
8supported on Alpine.
9
10--- a/include/pathnames.h
11+++ b/include/pathnames.h
12@@ -214,5 +214,13 @@
13 #define _PATH_DEV_RFKILL "/dev/rfkill"
14 #define _PATH_SYS_RFKILL "/sys/class/rfkill"
15
16+#ifdef UTMPS_UTMPX_H
17+/* override stub paths from <paths.h> with ones for utmps */
18+# undef _PATH_UTMP
19+# define _PATH_UTMP UTMPX_FILE
20+# undef _PATH_WTMP
21+# define _PATH_WTMP "/var/log/wtmp"
22+#endif
23+
24
25 #endif /* PATHNAMES_H */