1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 07:38:06 -05:00

Remove the half-hearted attempt to make the utmp helper process drop

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.

[originally from svn r9766]
This commit is contained in:
Simon Tatham 2013-02-24 19:28:13 +00:00
parent 74bc2635ad
commit a9eb51b7d4

View File

@ -270,7 +270,6 @@ static void fatal_sig_handler(int signum)
{
putty_signal(signum, SIG_DFL);
cleanup_utmp();
setuid(getuid());
raise(signum);
}
#endif