summaryrefslogtreecommitdiff
path: root/readpass.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 /readpass.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 'readpass.c')
-rw-r--r--readpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/readpass.c b/readpass.c
index 60e4a902f..34d70b07a 100644
--- a/readpass.c
+++ b/readpass.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: readpass.c,v 1.38 2006/06/06 10:20:20 markus Exp $ */ 1/* $OpenBSD: readpass.c,v 1.39 2006/06/08 14:45:49 markus Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Markus Friedl. All rights reserved. 3 * Copyright (c) 2001 Markus Friedl. All rights reserved.
4 * 4 *
@@ -61,7 +61,7 @@ ssh_askpass(char *askpass, const char *msg)
61 return NULL; 61 return NULL;
62 } 62 }
63 if (pid == 0) { 63 if (pid == 0) {
64 permanently_set_uid(getpwuid(getuid())); 64 permanently_drop_suid(getuid());
65 close(p[0]); 65 close(p[0]);
66 if (dup2(p[1], STDOUT_FILENO) < 0) 66 if (dup2(p[1], STDOUT_FILENO) < 0)
67 fatal("ssh_askpass: dup2: %s", strerror(errno)); 67 fatal("ssh_askpass: dup2: %s", strerror(errno));