[Top][All Lists]

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

`install -d -m MODE dir' doesn't honor MODE [Re: Bug#37150...

From: Jim Meyering
Subject: `install -d -m MODE dir' doesn't honor MODE [Re: Bug#37150...
Date: Fri, 16 Dec 2005 14:50:05 +0100

Thomas Hood <address@hidden> wrote:
> I tested install 5.93 and the bug (or feature) is still there.
> That is,
>     install -d -m 0755 foo
> creates a directory foo with g+s perm if foo's parent has s perm.
> This does look like a bug to me.

Re: <http://bugs.debian.org/37150>

Thanks for checking.
The code and documentation do disagree.

Maybe the code needs to use chmod in this case.

Or maybe the documentation should simply admit that when using -d, certain
directory attributes (e.g., for ACLs, too) may be inherited.  One argument
in favor of this approach is that Solaris 9's /usr/sbin/install also
works this way.

I'm leaning toward the latter.

reply via email to

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