From a9eb51b7d42c6733b07e4cbaebc0112073e63b4a Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 24 Feb 2013 19:28:13 +0000 Subject: [PATCH] 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] --- unix/uxpty.c | 1 - 1 file changed, 1 deletion(-) diff --git a/unix/uxpty.c b/unix/uxpty.c index 2bfb85b5..7ea7131c 100644 --- a/unix/uxpty.c +++ b/unix/uxpty.c @@ -270,7 +270,6 @@ static void fatal_sig_handler(int signum) { putty_signal(signum, SIG_DFL); cleanup_utmp(); - setuid(getuid()); raise(signum); } #endif