summaryrefslogtreecommitdiff
path: root/sshconnect2.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-06-13 13:10:00 +1000
committerDamien Miller <djm@mindrot.org>2006-06-13 13:10:00 +1000
commit2e5fe88ebe5a09477a655a36b047063282bfd86c (patch)
treebde219ce55421476bab60c5209522dbd3d66d2a1 /sshconnect2.c
parent6b4069ad563ce578cbfa6f90e76b462d26483e67 (diff)
- markus@cvs.openbsd.org 2006/06/08 14:45:49
[readpass.c sshconnect.c sshconnect2.c uidswap.c uidswap.h] do not set the gid, noted by solar; ok djm
Diffstat (limited to 'sshconnect2.c')
-rw-r--r--sshconnect2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshconnect2.c b/sshconnect2.c
index c97738c7b..4f96dcfc4 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshconnect2.c,v 1.154 2006/06/06 10:20:20 markus Exp $ */ 1/* $OpenBSD: sshconnect2.c,v 1.155 2006/06/08 14:45:49 markus Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000 Markus Friedl. All rights reserved.
4 * 4 *
@@ -1253,7 +1253,7 @@ ssh_keysign(Key *key, u_char **sigp, u_int *lenp,
1253 return -1; 1253 return -1;
1254 } 1254 }
1255 if (pid == 0) { 1255 if (pid == 0) {
1256 permanently_set_uid(getpwuid(getuid())); 1256 permanently_drop_suid(getuid());
1257 close(from[0]); 1257 close(from[0]);
1258 if (dup2(from[1], STDOUT_FILENO) < 0) 1258 if (dup2(from[1], STDOUT_FILENO) < 0)
1259 fatal("ssh_keysign: dup2: %s", strerror(errno)); 1259 fatal("ssh_keysign: dup2: %s", strerror(errno));