[Top][All Lists]

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

Re: coreutils-8.20.patch001

From: Eric Blake
Subject: Re: coreutils-8.20.patch001
Date: Mon, 11 Feb 2013 08:12:29 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 02/10/2013 11:31 AM, Alexey Potehin wrote:
> Hello people!
> This is path for strange behavior:
> rm -rf chmodbug;
> mkdir chmodbug;
> chmod 2755 chmodbug;
> stat --print "%a %n\n" chmodbug;
> chmod 0755 chmodbug;
> stat --print "%a %n\n" chmodbug;

This behavior is documented.  We _intentionally_ leave the sticky bit
alone, unless you request a double-leading 0 as declaration that you are
aware of the consequences of clearing the sticky bit.  Our behavior is
compliant with POSIX, and we will not be changing it.

chmod 00755 chmodbug
stat --print "%a %n\n" chmodbug

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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