commit | 0097248f90a00865082e8c146b905a6555cc146f | [log] [tgz] |
---|---|---|
author | djm@openbsd.org <djm@openbsd.org> | Fri Sep 11 04:55:01 2015 +0000 |
committer | Damien Miller <djm@mindrot.org> | Wed Sep 16 18:01:56 2015 +1000 |
tree | 815d7a08de51d0598ee93e319dd31626ab80c758 | |
parent | 9c06c814aff925e11a5cc592c06929c258a014f6 [diff] |
upstream commit skip if running as root; many systems (inc OpenBSD) allow root to ptrace arbitrary processes Upstream-Regress-ID: be2b925df89360dff36f972951fa0fa793769038
diff --git a/regress/agent-ptrace.sh b/regress/agent-ptrace.sh index 1912ca8..bb676d6 100644 --- a/regress/agent-ptrace.sh +++ b/regress/agent-ptrace.sh
@@ -12,6 +12,11 @@ esac fi +if [ "x$USER" = "xroot" ]; then + echo "Skipped: running as root" + exit 0 +fi + if have_prog gdb ; then : ok else