blob: 93f0d623148e875c14e1e2167e7dc4698fd27dd0 (
plain) (
blame)
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
29
30
31
32
33
34
35
36
37
38
|
--- pcnfsd_misc.c
+++ pcnfsd_misc.c
@@ -478,34 +478,7 @@
#else SVR4
-
-#include <utmp.h>
-#ifndef _PATH_WTMP
-#define _PATH_WTMP "/usr/adm/wtmp"
-#endif
-
-void
-wlogin(name)
- char *name;
-{
-
-extern char *getcallername();
- struct utmp ut;
-
- int fd;
-
- if(!wtmp_enabled)
- return;
- memset((char *)&ut, 0, sizeof (ut));
- (void) strcpy(ut.ut_line, "PC-NFS");
- (void) strncpy(ut.ut_name,name,sizeof ut.ut_name);
- ut.ut_time = time( (time_t *) 0);
- (void) strncpy(ut.ut_host, getcallername(), sizeof ut.ut_host);
- if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) >= 0) {
- (void)write(fd, (char *)&ut, sizeof(ut));
- (void)close(fd);
- }
-}
+void wlogin(char *name) { }
#endif SVR4
#endif WTMP
|