summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2002-10-01 20:34:13 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2002-10-01 20:34:13 +0000
commitcfd0f9de1066df977425d9f2abfb1b00e1acd0b4 (patch)
tree2af69ec6c9c095847f4476cd207093663c65de1c
parentfacdc77c82e2955359c306195d6e973da5014148 (diff)
allow root to access the agent, since there is no protection from root.
-rw-r--r--usr.bin/ssh/ssh-agent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c
index 8ef9c7a8e03..c72a54a5503 100644
--- a/usr.bin/ssh/ssh-agent.c
+++ b/usr.bin/ssh/ssh-agent.c
@@ -35,7 +35,7 @@
#include "includes.h"
#include <sys/queue.h>
-RCSID("$OpenBSD: ssh-agent.c,v 1.104 2002/09/12 19:11:52 stevesk Exp $");
+RCSID("$OpenBSD: ssh-agent.c,v 1.105 2002/10/01 20:34:12 markus Exp $");
#include <openssl/evp.h>
#include <openssl/md5.h>
@@ -829,7 +829,7 @@ after_select(fd_set *readset, fd_set *writeset)
close(sock);
break;
}
- if (getuid() != euid) {
+ if ((euid != 0) && (getuid() != euid)) {
error("uid mismatch: "
"peer euid %u != uid %u",
(u_int) euid, (u_int) getuid());