From 81d33d8e3cf7ea5ce3a5653c6102b623e019428a Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 21 Feb 2022 21:27:20 +1100 Subject: [PATCH] Skip agent-getpeereid when running as root. --- regress/agent-getpeereid.sh | 3 +++ 1 file changed, 3 insertions(+) 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\ *) ;;