repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: d0769a1ea33c182aa98e6cb58e90362117e0e1bc:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit d0769a1ea33c182aa98e6cb58e90362117e0e1bc
Author: Emanuele Giaquinta 
Date:   Thu Dec 22 10:38:09 2011 +0000

    Honour LOG_ONLY_ON_LOGIN feature macro.

diff --git a/src/init.C b/src/init.C
index d8ddff9c77336fd5dd55bf1ec623e54fc3f8160d..
index ..2511779a5b87bf11dbc281fead94b9d76097b412 100644
--- a/src/init.C
+++ b/src/init.C
@@ -1678,7 +1678,14 @@ rxvt_term::run_command (const char *const *argv)

       default:
         if (!option (Opt_utmpInhibit))
-          pty->login (cmd_pid, option (Opt_loginShell), rs[Rs_display_name]);
+          {
+#ifdef LOG_ONLY_ON_LOGIN
+            bool login_shell = option (Opt_loginShell);
+#else
+            bool login_shell = true;
+#endif
+            pty->login (cmd_pid, login_shell, rs[Rs_display_name]);
+          }

         pty->close_tty ();

-----END OF PAGE-----