summaryrefslogtreecommitdiff
path: root/tests/mkdir
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-10-30 21:44:53 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-10-30 21:44:53 +0000
commitd9b19cac6082a4c6c5327b5009e638053d82b4c4 (patch)
treeb2d164b538f052ddc4408a1bd86ef40209c5aad7 /tests/mkdir
parent9c9083d9a73d97c41f422a386d89c48690ea101f (diff)
downloadcoreutils-d9b19cac6082a4c6c5327b5009e638053d82b4c4.tar.xz
Require that the test be run as non-root.
Diffstat (limited to 'tests/mkdir')
-rwxr-xr-xtests/mkdir/p-32
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/mkdir/p-3 b/tests/mkdir/p-3
index 14338dde8..22c9074f2 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