From: Ulrich Drepper Date: Wed, 13 May 1998 16:12:38 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/libc-ud-980518~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7eb759de39981a77059b94a58193e84bf6656a1e;p=thirdparty%2Fglibc.git Update. * io/ftwtest-sh: Prevent tests from being run by root. --- diff --git a/ChangeLog b/ChangeLog index 50a06c2cd93..ef83e4d57f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 1998-05-13 Ulrich Drepper + * 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. diff --git a/io/ftwtest-sh b/io/ftwtest-sh index 0ae6ecd51ae..dadbfa0ca6f 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|'`