freebsd-ports/security/openssh-portable/files/patch-ssh-agent.c
Florian Smeets 9b3fe7c2f4 - update to 5.8p2 [1]
- fix Kerberos knob [2]
- fix build on 9.0 [3]
- fix deinstall with various knobs [4]
- fix LPK knob [5]

PR:		ports/161818 [1], ports/144597 [2], ports/160389 [3]
		ports/150493, ports/156926 [4], ports/155456 [5]

Submitted by:	"Grzegorz Blach" <magik@roorback.net> [1], [2], [4], [5]
		pluknet [3]
Reported by:	Jonathan <lordsith49@hotmail.com> [2]
		Kevin Thompson <antiduh@csh.rit.edu> [4]
		Alexey Remizov <alexey@remizov.org> [5]
2011-10-21 16:18:56 +00:00

10 lines
310 B
C

--- ssh-agent.c.orig 2010-04-15 23:56:22.000000000 -0600
+++ ssh-agent.c 2010-09-14 16:14:13.000000000 -0600
@@ -1086,6 +1086,7 @@
/* drop */
setegid(getgid());
setgid(getgid());
+ setuid(geteuid());
#if defined(HAVE_PRCTL) && defined(PR_SET_DUMPABLE)
/* Disable ptrace on Linux without sgid bit */