bug-coreutils
[Top][All Lists]
Advanced

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

Re: chmod no longer clears sticky bit


From: Mike Frysinger
Subject: Re: chmod no longer clears sticky bit
Date: Sat, 30 Sep 2006 19:20:27 -0400
User-agent: KMail/1.9.4

On Saturday 30 September 2006 19:07, Mike Frysinger wrote:
> looks like doing `chmod 0755` no longer clears sticky bits ...

seems to arise from lib/modechange.c:mode_adjust() ... particularly:
mode_t omit_change =
    (dir ? S_ISUID | S_ISGID : 0) & ~ changes->mentioned;

omit_change here is set to 06000 ... so when that is inverted and masked 
against the requested 02755, the requested changes become simply 00755 ...
-mike

Attachment: pgpJSvtgajMvf.pgp
Description: PGP signature


reply via email to

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