… | |
… | |
717 | |
717 | |
718 | #ifdef UTMP_SUPPORT |
718 | #ifdef UTMP_SUPPORT |
719 | void |
719 | void |
720 | rxvt_term::privileged_utmp (rxvt_privaction action) |
720 | rxvt_term::privileged_utmp (rxvt_privaction action) |
721 | { |
721 | { |
722 | if (OPTION (Opt_utmpInhibit) |
722 | if (OPTION (Opt_utmpInhibit)) |
723 | || !pty.name || !*pty.name) |
|
|
724 | return; |
723 | return; |
725 | |
724 | |
726 | rxvt_privileges (RESTORE); |
725 | rxvt_privileges (RESTORE); |
727 | |
726 | |
728 | if (action == SAVE) |
727 | if (action == SAVE) |
729 | session.login (pty.name, cmd_pid, OPTION (Opt_loginShell), rs[Rs_display_name]); |
728 | pty.login (cmd_pid, OPTION (Opt_loginShell), rs[Rs_display_name]); |
730 | else |
729 | else |
731 | session.logout (); |
730 | pty.logout (); |
732 | |
731 | |
733 | rxvt_privileges (IGNORE); |
732 | rxvt_privileges (IGNORE); |
734 | } |
733 | } |
735 | #endif |
734 | #endif |
736 | |
735 | |