diff options
author | 2002-10-01 20:34:12 +0000 | |
---|---|---|
committer | 2002-10-01 20:34:12 +0000 | |
commit | 8acb2e4781c6deaf9ed85aa3679ca75b5d77328a (patch) | |
tree | f1b9dc6a560ddf9372fd2d292ad35b284ad7f331 /usr.bin/ssh/ssh-agent.c | |
parent | Oppsie. Missing part from this commit: (diff) | |
download | wireguard-openbsd-8acb2e4781c6deaf9ed85aa3679ca75b5d77328a.tar.xz wireguard-openbsd-8acb2e4781c6deaf9ed85aa3679ca75b5d77328a.zip |
allow root to access the agent, since there is no protection from root.
Diffstat (limited to 'usr.bin/ssh/ssh-agent.c')
-rw-r--r-- | usr.bin/ssh/ssh-agent.c | 4 |
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()); |