GNU bug report logs - #14249
mkdir --parents --mode XXX incorrect mode for parents

Previous Next

Package: coreutils;

Reported by: rich <at> flatcap.org

Date: Tue, 23 Apr 2013 16:43:03 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Richard Russon <rich <at> flatcap.org>
To: bug-coreutils <at> gnu.org
Subject: 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




This bug report was last modified 12 years and 30 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.