Remove WTMP_ONLY_ON_LOGIN.
authorayin <ayin>
Wed, 18 Jan 2006 08:40:22 +0000 (08:40 +0000)
committerayin <ayin>
Wed, 18 Jan 2006 08:40:22 +0000 (08:40 +0000)
src/feature.h
src/logging.C

index 2dca38e297b204185fda090e8951609dde42f8ff..fd9cb9b6c950564d63ce514415a590258d38f673 100644 (file)
  */
 #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
index 464244817f287a17ecb40971c92325b925c0bd4f..7574d360032bc33ed7180858c586703cb23f12f5 100644 (file)
@@ -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