--- rxvt-unicode/src/logging.C 2006/01/18 12:06:11 1.33 +++ rxvt-unicode/src/logging.C 2006/01/18 16:34:53 1.34 @@ -205,7 +205,9 @@ #endif #ifdef WTMP_SUPPORT +#ifdef LOG_ONLY_ON_LOGIN if (login_shell) +#endif { # ifdef HAVE_STRUCT_UTMP # ifdef HAVE_UPDWTMP @@ -220,7 +222,9 @@ } #endif #if defined(LASTLOG_SUPPORT) && defined(RXVT_LASTLOG_FILE) +#ifdef LOG_ONLY_ON_LOGIN if (login_shell) +#endif rxvt_update_lastlog (RXVT_LASTLOG_FILE, pty, hostname); #endif } @@ -279,7 +283,9 @@ * Write ending wtmp entry */ #ifdef WTMP_SUPPORT +#ifdef LOG_ONLY_ON_LOGIN if (login_shell) +#endif { # ifdef HAVE_STRUCT_UTMP # ifdef HAVE_UPDWTMP