aboutsummaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
Diffstat (limited to 'io')
-rw-r--r--io/ftwtest-sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/io/ftwtest-sh b/io/ftwtest-sh
index 0ae6ecd..dadbfa0 100644
--- a/io/ftwtest-sh
+++ b/io/ftwtest-sh
@@ -11,6 +11,10 @@ objpfx=$1
# --depth use the FTW_DEPTH flag
testprogram=$2
+# We cannot test this as root.
+if test `id | sed "s/uid=\([0-9]*\).*/\1/"` = 0; then
+ exit 0
+fi
# First create our scenario:
tmp=`echo ${TMPDIR:-/tmp} | sed 's|\(.\)/*$|\1|'`