From: Paul Eggert Date: Sun, 30 Oct 2005 21:44:53 +0000 (+0000) Subject: Require that the test be run as non-root. X-Git-Tag: v6.0~1447 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d9b19cac6082a4c6c5327b5009e638053d82b4c4;p=thirdparty%2Fcoreutils.git Require that the test be run as non-root. --- diff --git a/tests/mkdir/p-3 b/tests/mkdir/p-3 index 14338dde84..22c9074f2d 100755 --- a/tests/mkdir/p-3 +++ b/tests/mkdir/p-3 @@ -8,6 +8,8 @@ if test "$VERBOSE" = yes; then mkdir --version fi +PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check + pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0