ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/main.C
(Generate patch)

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.180 by root, Mon Jan 16 15:00:20 2006 UTC vs.
Revision 1.183 by root, Tue Jan 17 10:19:13 2006 UTC

717 717
718#ifdef UTMP_SUPPORT 718#ifdef UTMP_SUPPORT
719void 719void
720rxvt_term::privileged_utmp (rxvt_privaction action) 720rxvt_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 makeutent (pty.name, rs[Rs_display_name]); 728 pty.login (cmd_pid, OPTION (Opt_loginShell), rs[Rs_display_name]);
730 else 729 else
731 cleanutent (); 730 pty.logout ();
732 731
733 rxvt_privileges (IGNORE); 732 rxvt_privileges (IGNORE);
734} 733}
735#endif 734#endif
736 735

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines