blob: 56d9b1d1dfba5031aac963646f76e5d2937af75c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$NetBSD: patch-ac,v 1.2 2002/08/25 21:52:30 jlam Exp $
--- src/utmp.c.orig Sat May 4 08:40:45 2002
+++ src/utmp.c
@@ -186,7 +186,11 @@
}
}
+#ifdef HAVE_UTMPX_H
+ utmpxname(UTMP_FILENAME);
+#else
utmpname(UTMP_FILENAME);
+#endif
setutent(); /* XXX: should be unnecessaray */
@@ -265,7 +269,11 @@
if (!ut_id[0])
return; /* entry not made */
+#ifdef HAVE_UTMPX_H
+ utmpxname(UTMP_FILENAME);
+#else
utmpname(UTMP_FILENAME);
+#endif
MEMSET(&utmp, 0, sizeof(UTMP));
STRNCPY(utmp.ut_id, ut_id, sizeof(utmp.ut_id));
utmp.ut_type = USER_PROCESS;
|