From 7cc138cc71999357c2dc656406e1b55255456d5d Mon Sep 17 00:00:00 2001 From: ayin Date: Wed, 18 Jan 2006 08:40:22 +0000 Subject: [PATCH] Remove WTMP_ONLY_ON_LOGIN. --- src/feature.h | 5 ----- src/logging.C | 4 ---- 2 files changed, 9 deletions(-) diff --git a/src/feature.h b/src/feature.h index 2dca38e2..fd9cb9b6 100644 --- a/src/feature.h +++ b/src/feature.h @@ -257,11 +257,6 @@ */ #define RESET_TTY_TO_COMMON_DEFAULTS -/* - * Only log in wtmp file when we're a login shell (-ls option) - */ -#define WTMP_ONLY_ON_LOGIN - /*--------------------------------BELL----------------------------------*/ /* * Disable all bell indications diff --git a/src/logging.C b/src/logging.C index 46424481..7574d360 100644 --- a/src/logging.C +++ b/src/logging.C @@ -205,9 +205,7 @@ rxvt_ptytty_unix::login (int cmd_pid, bool login_shell, const char *hostname) #endif #ifdef WTMP_SUPPORT -# ifdef WTMP_ONLY_ON_LOGIN if (login_shell) -# endif { # ifdef HAVE_STRUCT_UTMP # ifdef HAVE_UPDWTMP @@ -281,9 +279,7 @@ rxvt_ptytty_unix::logout () * Write ending wtmp entry */ #ifdef WTMP_SUPPORT -# ifdef WTMP_ONLY_ON_LOGIN if (login_shell) -# endif { # ifdef HAVE_STRUCT_UTMP # ifdef HAVE_UPDWTMP -- 2.34.1