From baf723ea141d95eec7a1c4d3baf141c9ec223843 Mon Sep 17 00:00:00 2001 From: simon 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. git-svn-id: svn://svn.tartarus.org/sgt/putty@9766 cda61777-01e9-0310-a592-d414129be87e --- 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 -- 2.11.0