I'm using fileutils 5.2.1. Issuing

        mkdir -m 755 -p /foo/bar

When neither foo nor bar exist, mkdir puts filemode of bar to be 755 but 
foo will be 700. The man page says of -m:

       -m mode, --mode=mode
              Set  the  mode of created directories to mode, which may be sym-
              bolic as in chmod(1) and then uses the default mode as the point
              of departure.

which means that all created directories should have mode 755, but only 
the leaf directory will have that mode.

Please fix.

-- 
Heikki Orsila                   Barbie's law:
[EMAIL PROTECTED]               "Math is hard, let's go shopping!"
http://www.iki.fi/shd


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to