GNU bug report logs - #34009
doc: mkdir: warn that --mode doesn't affect parents

Previous Next

Package: coreutils;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Mon, 7 Jan 2019 15:37:01 UTC

Severity: normal

Merged with 45258

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: 34009 <at> debbugs.gnu.org
Subject: bug#34009: warn that mkdir --mode doesn't affect parents created
Date: Mon, 07 Jan 2019 23:36:28 +0800
On man mkdir

       -m, --mode=MODE
              set file mode (as in chmod), not a=rwx - umask

       -p, --parents
              no error if existing, make parent directories as needed

do warn that --mode doesn't affect any parents created.

$ mkdir --mode 700 -p /tmp/g/h/i
$ find /tmp/g -ls
    55795      0 drwxr-xr-x   3 jidanni  jidanni        60 Jan  7 23:30 /tmp/g
    55796      0 drwxr-xr-x   3 jidanni  jidanni        60 Jan  7 23:30 /tmp/g/h
    55797      0 drwx------   2 jidanni  jidanni        40 Jan  7 23:30 /tmp/g/h/i

Also warn on (info "(coreutils) mkdir invocation") more directly. Thanks.




This bug report was last modified 2 years and 247 days ago.

Previous Next


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