diff options
Diffstat (limited to 'regress/agent-getpeereid.sh')
-rw-r--r-- | regress/agent-getpeereid.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/regress/agent-getpeereid.sh b/regress/agent-getpeereid.sh index 6186a8d48..e5fcedda7 100644 --- a/regress/agent-getpeereid.sh +++ b/regress/agent-getpeereid.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: agent-getpeereid.sh,v 1.2 2005/11/14 21:25:56 grunk Exp $ | 1 | # $OpenBSD: agent-getpeereid.sh,v 1.3 2006/07/06 12:01:53 grunk Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="disallow agent attach from other uid" | 4 | tid="disallow agent attach from other uid" |
@@ -12,6 +12,11 @@ then | |||
12 | echo "skipped (not supported on this platform)" | 12 | echo "skipped (not supported on this platform)" |
13 | exit 0 | 13 | exit 0 |
14 | fi | 14 | fi |
15 | if [ -z "$SUDO" ]; then | ||
16 | echo "skipped: need SUDO to switch to uid $UNPRIV" | ||
17 | exit 0 | ||
18 | fi | ||
19 | |||
15 | 20 | ||
16 | trace "start agent" | 21 | trace "start agent" |
17 | eval `${SSHAGENT} -s -a ${ASOCK}` > /dev/null | 22 | eval `${SSHAGENT} -s -a ${ASOCK}` > /dev/null |