*/
#define RESET_TTY_TO_COMMON_DEFAULTS
+/*
+ * Only log in wtmp and lastlog files when we're a login shell (-ls option)
+ */
+#define LOG_ONLY_ON_LOGIN
+
/*--------------------------------BELL----------------------------------*/
/*
* Disable all bell indications
#endif
#ifdef WTMP_SUPPORT
+#ifdef LOG_ONLY_ON_LOGIN
if (login_shell)
+#endif
{
# ifdef HAVE_STRUCT_UTMP
# ifdef HAVE_UPDWTMP
}
#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
}
* Write ending wtmp entry
*/
#ifdef WTMP_SUPPORT
+#ifdef LOG_ONLY_ON_LOGIN
if (login_shell)
+#endif
{
# ifdef HAVE_STRUCT_UTMP
# ifdef HAVE_UPDWTMP