From 7eb759de39981a77059b94a58193e84bf6656a1e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 13 May 1998 16:12:38 +0000 Subject: Update. * io/ftwtest-sh: Prevent tests from being run by root. --- io/ftwtest-sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'io') 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|'` -- cgit v1.1