--- rxvt-unicode/src/logging.C 2006/01/18 12:06:11 1.33 +++ rxvt-unicode/src/logging.C 2006/01/22 00:36:59 1.35 @@ -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 @@ -443,4 +449,9 @@ #endif /* LASTLOG_SUPPORT */ /* ------------------------------------------------------------------------- */ +#else +void +rxvt_ptytty_unix::login (int cmd_pid, bool login_shell, const char *hostname) +{ +} #endif /* UTMP_SUPPORT */