| 1 | From: Jakub Jirutka <[email protected]>
|
| 2 | Date: Mon, 20 Dec 2021 18:52:00 +0100
|
| 3 | Subject: [PATCH] Add support for utmps
|
| 4 |
|
| 5 | The following programs use utmpx.h: last, login, lslogins, agetty, wall, write.
|
| 6 |
|
| 7 | Programs 'su' and 'runuser' include utmpx.h, but use only btmp which is not
|
| 8 | supported on Alpine.
|
| 9 |
|
| 10 | |
| 11 | |
| 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 */
|