summaryrefslogtreecommitdiff
path: root/readpass.c
diff options
context:
space:
mode:
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));