summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/readpass.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2006-06-08 14:45:49 +0000
committermarkus <markus@openbsd.org>2006-06-08 14:45:49 +0000
commit7feced140881cbb089cc45359b8974a6aee5f4be (patch)
tree63c2d07d7e8caf85f1d8881b43aef4bd2641018b /usr.bin/ssh/readpass.c
parentbits for armish; ok drahn (diff)
downloadwireguard-openbsd-7feced140881cbb089cc45359b8974a6aee5f4be.tar.xz
wireguard-openbsd-7feced140881cbb089cc45359b8974a6aee5f4be.zip
do not set the gid, noted by solar; ok djm
Diffstat (limited to 'usr.bin/ssh/readpass.c')
-rw-r--r--usr.bin/ssh/readpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/readpass.c b/usr.bin/ssh/readpass.c
index 02cf8a94688..da020065ad2 100644
--- a/usr.bin/ssh/readpass.c
+++ b/usr.bin/ssh/readpass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readpass.c,v 1.38 2006/06/06 10:20:20 markus Exp $ */
+/* $OpenBSD: readpass.c,v 1.39 2006/06/08 14:45:49 markus Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
*
@@ -60,7 +60,7 @@ ssh_askpass(char *askpass, const char *msg)
return NULL;
}
if (pid == 0) {
- permanently_set_uid(getpwuid(getuid()));
+ permanently_drop_suid(getuid());
close(p[0]);
if (dup2(p[1], STDOUT_FILENO) < 0)
fatal("ssh_askpass: dup2: %s", strerror(errno));