--- rxvt-unicode/src/logging.C 2006/01/17 15:17:39 1.31 +++ rxvt-unicode/src/logging.C 2006/01/18 12:06:11 1.33 @@ -168,7 +168,7 @@ { # ifdef HAVE_TTYSLOT int fdstdin = dup (STDIN_FILENO); - dup2 (pty->tty, STDIN_FILENO); + dup2 (tty, STDIN_FILENO); i = ttyslot (); if (rxvt_write_bsd_utmp (i, ut)) @@ -205,9 +205,7 @@ #endif #ifdef WTMP_SUPPORT -# ifdef WTMP_ONLY_ON_LOGIN if (login_shell) -# endif { # ifdef HAVE_STRUCT_UTMP # ifdef HAVE_UPDWTMP @@ -281,9 +279,7 @@ * Write ending wtmp entry */ #ifdef WTMP_SUPPORT -# ifdef WTMP_ONLY_ON_LOGIN if (login_shell) -# endif { # ifdef HAVE_STRUCT_UTMP # ifdef HAVE_UPDWTMP