bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#14249: mkdir --parents --mode XXX incorrect mode for parents


From: Richard Russon
Subject: bug#14249: mkdir --parents --mode XXX incorrect mode for parents
Date: Tue, 23 Apr 2013 14:22:45 +0100

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

[Prev in Thread] Current Thread [Next in Thread]