From 8acb2e4781c6deaf9ed85aa3679ca75b5d77328a Mon Sep 17 00:00:00 2001 From: markus Date: Tue, 1 Oct 2002 20:34:12 +0000 Subject: allow root to access the agent, since there is no protection from root. --- usr.bin/ssh/ssh-agent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/ssh/ssh-agent.c') 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 -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 #include @@ -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()); -- cgit v1.2.3-59-g8ed1b