diff options
author | Darren Tucker <dtucker@dtucker.net> | 2022-02-21 11:27:20 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2022-02-21 11:27:20 +0100 |
commit | 81d33d8e3cf7ea5ce3a5653c6102b623e019428a (patch) | |
tree | bd24620caadeb266ee7f22043e18ae0418be2a7f /regress/agent-getpeereid.sh | |
parent | upstream: Aproximate realpath on the expected output by deduping (diff) | |
download | openssh-81d33d8e3cf7ea5ce3a5653c6102b623e019428a.tar.xz openssh-81d33d8e3cf7ea5ce3a5653c6102b623e019428a.zip |
Skip agent-getpeereid when running as root.
Diffstat (limited to '')
-rw-r--r-- | regress/agent-getpeereid.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/regress/agent-getpeereid.sh b/regress/agent-getpeereid.sh index 2874100fa..b84471a78 100644 --- a/regress/agent-getpeereid.sh +++ b/regress/agent-getpeereid.sh @@ -12,6 +12,9 @@ if config_defined HAVE_GETPEEREID HAVE_GETPEERUCRED HAVE_SO_PEERCRED ; then else skip "skipped (not supported on this platform)" fi +if test "x$USER" = "xroot"; then + skip "skipped (running as root)" +fi case "x$SUDO" in xsudo) sudo=1;; xdoas|xdoas\ *) ;; |