about summary refs log tree commit diff
path: root/io
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-05-13 16:12:38 +0000
committerUlrich Drepper <drepper@redhat.com>1998-05-13 16:12:38 +0000
commit7eb759de39981a77059b94a58193e84bf6656a1e (patch)
tree35740553cbcec6b71df8258e17217c9c6a6358e3 /io
parenta7c378d8cdaea230b545936dede0d3aa567429b6 (diff)
downloadglibc-7eb759de39981a77059b94a58193e84bf6656a1e.tar.gz
glibc-7eb759de39981a77059b94a58193e84bf6656a1e.tar.xz
glibc-7eb759de39981a77059b94a58193e84bf6656a1e.zip
Update.
	* io/ftwtest-sh: Prevent tests from being run by root.
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 0ae6ecd51a..dadbfa0ca6 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|'`