diff -Pur wu-ftpd.orig/src/ftpd.c wu-ftpd/src/ftpd.c
--- wu-ftpd.orig/src/ftpd.c	Sat Jun 27 13:37:21 1998
+++ wu-ftpd/src/ftpd.c	Sat Jun 27 16:31:58 1998
@@ -84,6 +84,8 @@
 #include <errno.h>
 #include <string.h>
 
+#include <tmpdir.h>
+
 /*
  *  Arrange to use either varargs or stdargs
  *
@@ -1333,6 +1335,7 @@
 
     delay_signaling(); /* we can't allow any signals while euid==0: kinch */
     (void) seteuid((uid_t) 0);
+    mkusertemp("root", 0, 0);
     if (logged_in)
         logwtmp(ttyline, "", "");
     pw = NULL;
@@ -1563,6 +1566,7 @@
 /* END AUTHENTICATION */
     login_attempts = 0;         /* this time successful */
 /* SET GROUP ID STARTS HERE */
+   mkusertemp(pw->pw_name, pw->pw_uid, pw->pw_gid);
 #ifndef AIX
     (void) setegid((gid_t) pw->pw_gid);
 #else
@@ -3233,6 +3238,7 @@
     if (logged_in) {
         delay_signaling(); /* we can't allow any signals while euid==0: kinch */
         (void) seteuid((uid_t) 0);
+	mkusertemp("root", 0, 0);
         logwtmp(ttyline, "", "");
     }
     if (logging)
diff -Pur wu-ftpd.orig/src/makefiles/Makefile.lnx wu-ftpd/src/makefiles/Makefile.lnx
--- wu-ftpd.orig/src/makefiles/Makefile.lnx	Sat Jun 27 13:37:20 1998
+++ wu-ftpd/src/makefiles/Makefile.lnx	Sat Jun 27 15:55:34 1998
@@ -7,7 +7,7 @@
 # debian fix:
 YACC     = bison -y
 IFLAGS   = -I.. -I../support #-I/usr/include/bsd
-LFLAGS   = -L../support -s
+LFLAGS   = -L../support -s 
 CFLAGS   = $(RPM_OPT_FLAGS) -pipe ${IFLAGS} ${LFLAGS}
 LIBES    = -lsupport -lpam -ldl -lcrypt #-lbsd -lshadow
 LINTFLAGS=	
@@ -30,7 +30,7 @@
 	${CC} ${CFLAGS} -o $@ ftpshut.c vers.o ${LIBES}
 
 ftpd: ${OBJS} ${LIBC}
-	${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBES}
+	${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBES} -ltmpdir
 
 ckconfig:   ckconfig.c
 	${CC} ${CFLAGS} -o $@ ckconfig.c

