Remove the half-hearted attempt to make the utmp helper process drop
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 24 Feb 2013 19:28:13 +0000 (19:28 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 24 Feb 2013 19:28:13 +0000 (19:28 +0000)
privileges just before dying of a fatal signal. I'm not sure what I
intended it for in the first place; it certainly isn't doing its job
properly (no setgid), it's causing compiler warnings due to not
checking the setuid return code, and we can't think of any useful
purpose for it.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9766 cda61777-01e9-0310-a592-d414129be87e

unix/uxpty.c

index 2bfb85b..7ea7131 100644 (file)
@@ -270,7 +270,6 @@ static void fatal_sig_handler(int signum)
 {
     putty_signal(signum, SIG_DFL);
     cleanup_utmp();
-    setuid(getuid());
     raise(signum);
 }
 #endif