mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
Skip agent-getpeereid when running as root.
This commit is contained in:
parent
fbd772570a
commit
81d33d8e3c
@ -12,6 +12,9 @@ if config_defined HAVE_GETPEEREID HAVE_GETPEERUCRED HAVE_SO_PEERCRED ; then
|
|||||||
else
|
else
|
||||||
skip "skipped (not supported on this platform)"
|
skip "skipped (not supported on this platform)"
|
||||||
fi
|
fi
|
||||||
|
if test "x$USER" = "xroot"; then
|
||||||
|
skip "skipped (running as root)"
|
||||||
|
fi
|
||||||
case "x$SUDO" in
|
case "x$SUDO" in
|
||||||
xsudo) sudo=1;;
|
xsudo) sudo=1;;
|
||||||
xdoas|xdoas\ *) ;;
|
xdoas|xdoas\ *) ;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user