blob: 1c94db51ad7c80d62fcdeb6d8d3db1e873af619c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- utmp.c.orig Sat Jan 13 13:48:13 2001
+++ utmp.c Wed Jun 18 04:45:38 2003
@@ -6,13 +6,14 @@
#include <fcntl.h>
#include <utmp.h>
#include <stdio.h>
+#include <unistd.h>
#ifdef DEBUG_UTMP
#undef UTMP_FILE
#define UTMP_FILE "/tmp/utmp"
#else
#ifndef UTMP_FILE
-#define UTMP_FILE "/etc/utmp"
+#define UTMP_FILE _PATH_UTMP
#endif /* UTMP_FILE */
#endif /* DEBUG_UTMP */
|