mirror of
https://github.com/fluencelabs/musl
synced 2025-06-25 20:51:53 +00:00
minor compatibility fixes in utmp.h and fixing mismatch with paths.h
the pathnames prefixed with /dev/null/ are guaranteed never to be valid. the previous use of /dev/null alone was mildly dangerous in that bad software might attempt to unlink the name when it found a non-regular file there and create a new file.
This commit is contained in:
@ -27,9 +27,9 @@
|
||||
#define _PATH_SHELLS "/etc/shells"
|
||||
#define _PATH_TTY "/dev/tty"
|
||||
#define _PATH_UNIX "/boot/vmlinux"
|
||||
#define _PATH_UTMP "/var/run/utmp"
|
||||
#define _PATH_UTMP "/dev/null/utmp"
|
||||
#define _PATH_VI "/usr/bin/vi"
|
||||
#define _PATH_WTMP "/var/log/wtmp"
|
||||
#define _PATH_WTMP "/dev/null/wtmp"
|
||||
#define _PATH_LASTLOG "/var/log/lastlog"
|
||||
|
||||
#define _PATH_DEV "/dev/"
|
||||
|
Reference in New Issue
Block a user