]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 13 May 1998 16:12:38 +0000 (16:12 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 13 May 1998 16:12:38 +0000 (16:12 +0000)
* io/ftwtest-sh: Prevent tests from being run by root.

ChangeLog
io/ftwtest-sh

index 50a06c2cd935f74f35840e4460b407bbb58a6232..ef83e4d57f46cfaa7e31e7c558b5949aff0fe3e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 1998-05-13  Ulrich Drepper  <drepper@cygnus.com>
 
+       * io/ftwtest-sh: Prevent tests from being run by root.
+
        * wcsmbs/wcsmbsload.c (extract_charset_name): Fix silly bugs in
        last addition.  Patch by wkpark@chem.skku.ac.kr.
 
index 0ae6ecd51aedecb85bc3d7218b25273ac3df506c..dadbfa0ca6f0ff81445047acbe87b898b3fbfd81 100644 (file)
@@ -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|'`