From dbc8afd3993a9615ac43866fe77c4fe9add21125 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 14 Jun 2005 09:00:00 +0000 Subject: Ensure mkdir succeeds if the following argument is an absolute directory name. --- tests/mkdir/p-3 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/mkdir/p-3') diff --git a/tests/mkdir/p-3 b/tests/mkdir/p-3 index 5aac4a943..e9e95de65 100755 --- a/tests/mkdir/p-3 +++ b/tests/mkdir/p-3 @@ -17,6 +17,7 @@ framework_failure=0 mkdir -p $tmp || framework_failure=1 cd $tmp || framework_failure=1 mkdir no-access || framework_failure=1 +mkdir no-acce2s || framework_failure=1 if test $framework_failure = 1; then echo "$0: failure in testing framework" 1>&2 @@ -26,9 +27,14 @@ fi p=$pwd/$tmp (cd no-access; chmod 0 . && mkdir -p $p/a/b u/v) 2> /dev/null && fail=1 +# Same as above, but with a following *absolute* name, it should succeed +(cd no-acce2s; chmod 0 . && mkdir -p $p/a/b $p/z) || fail=1 + test -d $p/a/b || fail=1 b=`ls $p/a|tr -d '\n'` +test -d $p/z || fail=1 + # With coreutils-5.3.0, this would fail with $b=bu. test "x$b" = xb || fail=1 -- cgit v1.2.3-70-g09d2