diff options
Diffstat (limited to 'net/pcnfsd/files/patch-utmp')
-rw-r--r-- | net/pcnfsd/files/patch-utmp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/net/pcnfsd/files/patch-utmp b/net/pcnfsd/files/patch-utmp deleted file mode 100644 index 93f0d623148e..000000000000 --- a/net/pcnfsd/files/patch-utmp +++ /dev/null @@ -1,38 +0,0 @@ ---- 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 - |