Description of problem:
mkdir doesn't honour the mode option when the parents option is used.
The leaf directories have their permissions set correctly, but the
parent directory has the permissions according to your umask.

How reproducible:
Always

Steps to Reproduce:
1. umask 077
2. mkdir --parents --mode 755 project/subproject
3. ls -ld project project/subproject

Actual results:
drwx------. 3 flatcap flatcap 60 Apr 23 14:17 project
drwxr-xr-x. 2 flatcap flatcap 40 Apr 23 14:17 project/subproject

Expected results:
drwxr-xr-x. 3 flatcap flatcap 60 Apr 23 14:17 project
drwxr-xr-x. 2 flatcap flatcap 40 Apr 23 14:17 project/subproject

Additional info:
mkdir (GNU coreutils) 8.17
fedora 18



Reply via email to