summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--old/fileutils/ChangeLog4
-rwxr-xr-xtests/mkdir/parents12
2 files changed, 15 insertions, 1 deletions
diff --git a/old/fileutils/ChangeLog b/old/fileutils/ChangeLog
index c3e2459d0..de4a3ec4d 100644
--- a/old/fileutils/ChangeLog
+++ b/old/fileutils/ChangeLog
@@ -1,3 +1,7 @@
+2000-11-09 Jim Meyering <meyering@lucent.com>
+
+ * Version 4.0.32.
+
2000-11-06 Jim Meyering <meyering@lucent.com>
* tests/cp/cp-parents: Move mkdir tests into ../mkdir.
diff --git a/tests/mkdir/parents b/tests/mkdir/parents
index b7cbd8d16..edd100035 100755
--- a/tests/mkdir/parents
+++ b/tests/mkdir/parents
@@ -20,7 +20,7 @@ abs_srcdir=`pwd`
cd $pwd || framework_failure=1
mkdir $tmp || framework_failure=1
cd $tmp || framework_failure=1
-mkdir e-dir || framework_failure=1
+mkdir -m 700 e-dir || framework_failure=1
if test $framework_failure = 1; then
echo 'failure in testing framework'
@@ -29,6 +29,16 @@ fi
fail=0
+p=`ls -ld e-dir|sed 's/ .*//'`
+case $p in drwx------);; *) fail=1;; esac
+if test $fail = 1
+ 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
+
# Make sure `mkdir -p existing-dir' succeeds
# and that `mkdir existing-dir' fails.
mkdir -p e-dir || fail=1