summaryrefslogtreecommitdiff
path: root/include/paths.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-06-27 20:00:29 -0400
committerRich Felker <dalias@aerifal.cx>2013-06-27 20:00:29 -0400
commit1e2281b8356d1935a129ddb199d71677f19a1619 (patch)
tree8b5e757529213612235cdbb641f566fa263b9055 /include/paths.h
parent3cd6f5229f079f892411e82fce3fe15c78eef4d8 (diff)
downloadmusl-1e2281b8356d1935a129ddb199d71677f19a1619.tar.gz
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.
Diffstat (limited to 'include/paths.h')
-rw-r--r--include/paths.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/paths.h b/include/paths.h
index d0a5a6d6..e0d1fff1 100644
--- a/include/paths.h
+++ b/include/paths.h
@@ -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/"