summaryrefslogtreecommitdiff
path: root/tests/mkdir
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-11-06 21:53:08 +0000
committerJim Meyering <jim@meyering.net>2000-11-06 21:53:08 +0000
commit57ebb8d808248cf4332e27cf05b55993dd72d712 (patch)
tree40d9b64768dec1fa74099d242548f0ec0be496a8 /tests/mkdir
parent0aa5a0d85e417e5b1f65b2a00c1ee9803378e807 (diff)
downloadcoreutils-57ebb8d808248cf4332e27cf05b55993dd72d712.tar.xz
*** empty log message ***
Diffstat (limited to 'tests/mkdir')
-rwxr-xr-xtests/mkdir/parents2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/mkdir/parents b/tests/mkdir/parents
index c40e3deea..b7cbd8d16 100755
--- a/tests/mkdir/parents
+++ b/tests/mkdir/parents
@@ -34,11 +34,13 @@ fail=0
mkdir -p e-dir || fail=1
mkdir e-dir > /dev/null 2>&1 && fail=1
+# Create an existing directory.
umask 077
mode_str=drwxr-x-wx
mode_arg=`$abs_srcdir/../rwx-to-mode $mode_str`
mkdir -m $mode_arg a || fail=1
+# this `mkdir -p ...' shouldn't change perms of existing dir `a'.
d_mode_str=drwx-w--wx
d_mode_arg=`$abs_srcdir/../rwx-to-mode $d_mode_str`
mkdir -p -m $d_mode_arg a/b/c/d