bug-coreutils
[Top][All Lists]
Advanced

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

[fileutils] mkdir problem


From: Heikki Orsila
Subject: [fileutils] mkdir problem
Date: Wed, 12 Apr 2006 02:28:11 +0300
User-agent: Mutt/1.5.9i

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:
address@hidden          "Math is hard, let's go shopping!"
http://www.iki.fi/shd




reply via email to

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