summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2003-06-04 10:23:49 +0000
committerDamien Miller <djm@cvs.openbsd.org>2003-06-04 10:23:49 +0000
commitf241a11097a6326ae2c068f5b5930c7d356badc9 (patch)
treefbc0f0531a26af882a883588f3ef1d5d20bc0611 /usr.bin
parent5de10d4061c2fe6e94da02af1a4f508423b6eb84 (diff)
remove duplicated group-dropping code; ok markus@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/sshd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index 7fbceffffdc..804b471076a 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/sshd.c
@@ -42,7 +42,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshd.c,v 1.267 2003/05/29 16:58:45 deraadt Exp $");
+RCSID("$OpenBSD: sshd.c,v 1.268 2003/06/04 10:23:48 djm Exp $");
#include <openssl/dh.h>
#include <openssl/bn.h>
@@ -555,10 +555,6 @@ privsep_preauth_child(void)
do_setusercontext(pw);
#else
gidset[0] = pw->pw_gid;
- if (setegid(pw->pw_gid) < 0)
- fatal("setegid failed for %u", (u_int)pw->pw_gid);
- if (setgid(pw->pw_gid) < 0)
- fatal("setgid failed for %u", (u_int)pw->pw_gid);
if (setgroups(1, gidset) < 0)
fatal("setgroups: %.100s", strerror(errno));
permanently_set_uid(pw);