diff -ur proftpd-1.2.0rc2.orig/src/log.c proftpd-1.2.0rc2/src/log.c
--- proftpd-1.2.0rc2.orig/src/log.c Wed Jul 26 13:03:17 2000
-+++ proftpd-1.2.0rc2/src/log.c Wed Aug 9 16:57:44 2000
++++ proftpd-1.2.0rc2/src/log.c Wed Aug 9 17:01:45 2000
@@ -529,21 +529,14 @@
int log_wtmp(char *line, char *name, char *host, p_in_addr_t *ip)
memset(&utx,0,sizeof(utx));
sstrncpy(utx.ut_user,name,sizeof(utx.ut_user));
sstrncpy(utx.ut_id,"ftp",sizeof(utx.ut_user));
-@@ -566,22 +558,11 @@
+@@ -566,22 +558,12 @@
utx.ut_type = DEAD_PROCESS;
utx.ut_exit.e_termination = 0;
utx.ut_exit.e_exit = 0;
+ updwtmpx(_PATH_WTMP, &utx);
#endif
++#endif
#endif /* SVR4 */
- if(fd < 0 && (fd = open(WTMP_FILE,O_WRONLY|O_APPEND,0)) < 0) {
memset(&ut,0,sizeof(ut));
#ifdef HAVE_UTMAXTYPE
#ifdef LINUX
-@@ -612,12 +593,7 @@
+@@ -612,12 +594,7 @@
#endif /* HAVE_UT_UT_HOST */
time(&ut.ut_time);