-p does not use the mode from -m for parent directories:

# mkdir -p -m 700 foo/bar
# ls -ld foo foo/bar

The directory foo does not have the correct permissions.

I can imagine:

# mkdir -p -m 500 foo/bar

Causing problems though, but unless it's easy to handle, I would ignore it (the user got what he requested).

        -Ariel


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to