]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Source sticky-check instead of open-coding it.
authorJim Meyering <jim@meyering.net>
Thu, 23 Nov 2000 14:59:05 +0000 (14:59 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 23 Nov 2000 14:59:05 +0000 (14:59 +0000)
tests/mkdir/parents

index f32f00ec367d6274fef9f9032ded9b746cd66b2c..65813692708997ce90cb26d10e659ceaaec0d5c9 100755 (executable)
@@ -27,17 +27,9 @@ if test $framework_failure = 1; then
   (exit 1); exit
 fi
 
-fail=0
+. $srcdir/../sticky-check
 
-p=`ls -ld e-dir|sed 's/ .*//'`
-case $p in drwx------);; *) fail=1;; esac
-if test $fail = 1; then
-  cat <<EOF >&2
-$0: Since it looks like you're running this test in a directory with
-the sticky bit set, we're skipping this test.
-EOF
-  (exit 77); exit
-fi
+fail=0
 
 # Make sure `mkdir -p existing-dir' succeeds
 # and that `mkdir existing-dir' fails.