diff options
author | Damien Miller <djm@mindrot.org> | 2002-10-03 11:54:35 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-10-03 11:54:35 +1000 |
commit | af9de38c4319948b8cf73cc1b18ae8270dba185e (patch) | |
tree | d4430756718ec108b27efee451ad35d09e93f4b2 /ssh-agent.c | |
parent | d8769625fba2c08e9eae81d225bba58427196c5a (diff) |
- (djm) OpenBSD CVS Sync
- markus@cvs.openbsd.org 2002/10/01 20:34:12
[ssh-agent.c]
allow root to access the agent, since there is no protection from root.
Diffstat (limited to 'ssh-agent.c')
-rw-r--r-- | ssh-agent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-agent.c b/ssh-agent.c index 77958cca0..cca720ee2 100644 --- a/ssh-agent.c +++ b/ssh-agent.c | |||
@@ -35,7 +35,7 @@ | |||
35 | 35 | ||
36 | #include "includes.h" | 36 | #include "includes.h" |
37 | #include "openbsd-compat/sys-queue.h" | 37 | #include "openbsd-compat/sys-queue.h" |
38 | RCSID("$OpenBSD: ssh-agent.c,v 1.104 2002/09/12 19:11:52 stevesk Exp $"); | 38 | RCSID("$OpenBSD: ssh-agent.c,v 1.105 2002/10/01 20:34:12 markus Exp $"); |
39 | 39 | ||
40 | #include <openssl/evp.h> | 40 | #include <openssl/evp.h> |
41 | #include <openssl/md5.h> | 41 | #include <openssl/md5.h> |
@@ -833,7 +833,7 @@ after_select(fd_set *readset, fd_set *writeset) | |||
833 | close(sock); | 833 | close(sock); |
834 | break; | 834 | break; |
835 | } | 835 | } |
836 | if (getuid() != euid) { | 836 | if ((euid != 0) && (getuid() != euid)) { |
837 | error("uid mismatch: " | 837 | error("uid mismatch: " |
838 | "peer euid %u != uid %u", | 838 | "peer euid %u != uid %u", |
839 | (u_int) euid, (u_int) getuid()); | 839 | (u_int) euid, (u_int) getuid()); |