summaryrefslogtreecommitdiff
path: root/security/openssh-portable/files/patch-ssh-agent.c
blob: a9f760bb3dc1da22bf4a0e79defd9ccbe78e6c46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
--- ssh-agent.c.orig	Fri Sep  1 02:38:37 2006
+++ ssh-agent.c	Sat Sep 30 18:30:32 2006
@@ -1036,6 +1036,7 @@
 	/* drop */
 	setegid(getgid());
 	setgid(getgid());
+	setuid(geteuid());
 
 #if defined(HAVE_PRCTL) && defined(PR_SET_DUMPABLE)
 	/* Disable ptrace on Linux without sgid bit */