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.171 by root, Wed Jan 11 03:13:26 2006 UTC vs.
Revision 1.173 by root, Wed Jan 11 19:55:34 2006 UTC

284 if (parent[0]) 284 if (parent[0])
285 XDestroyWindow (disp, parent[0]); 285 XDestroyWindow (disp, parent[0]);
286 } 286 }
287 287
288 // TODO: free pixcolours, colours should become part of rxvt_display 288 // TODO: free pixcolours, colours should become part of rxvt_display
289
290 delete pix_colors_focused; 289 delete pix_colors_focused;
291#if OFF_FOCUS_FADING 290#if OFF_FOCUS_FADING
292 delete pix_colors_unfocused; 291 delete pix_colors_unfocused;
293#endif 292#endif
294 293
704 case IGNORE: 703 case IGNORE:
705 /* 704 /*
706 * change effective uid/gid - not real uid/gid - so we can switch 705 * change effective uid/gid - not real uid/gid - so we can switch
707 * back to root later, as required 706 * back to root later, as required
708 */ 707 */
708 setegid (getgid ());
709 seteuid (getuid ()); 709 seteuid (getuid ());
710 setegid (getgid ());
711 break; 710 break;
712 case SAVE: 711 case SAVE:
712 saved_egid = getegid ();
713 saved_euid = geteuid (); 713 saved_euid = geteuid ();
714 saved_egid = getegid ();
715 break; 714 break;
716 case RESTORE: 715 case RESTORE:
716 setegid (saved_egid);
717 seteuid (saved_euid); 717 seteuid (saved_euid);
718 setegid (saved_egid);
719 break; 718 break;
720 } 719 }
721# else 720# else
722 switch (action) 721 switch (action)
723 { 722 {
724 case IGNORE: 723 case IGNORE:
724 setgid (getgid ());
725 setuid (getuid ()); 725 setuid (getuid ());
726 setgid (getgid ());
727 /* FALLTHROUGH */ 726 /* FALLTHROUGH */
728 case SAVE: 727 case SAVE:
729 /* FALLTHROUGH */ 728 /* FALLTHROUGH */
730 case RESTORE: 729 case RESTORE:
731 break; 730 break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines