Re: Bug#249177: coreutils: chown is not POSIXLY_CORRECT even when the va
From:
Paul Eggert
Subject:
Re: Bug#249177: coreutils: chown is not POSIXLY_CORRECT even when the variable is set
Date:
Sun, 23 May 2004 00:56:29 -0700
User-agent:
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)
>> For the BSD -H/-L/-P options, which control file tree walking:
>>
>> -P = --walk=physical
>> -H = --walk=hybrid (I have no idea what -H originally stood for.)
>> -L = --walk=logical
As a minor point I'm now thinking that it might be clearer to make
these options operands of --recursive instead, e.g.,
--recursive=physical. This is because -P/-H/-L makes no sense without
-R.
>> * Minor suggestion: "chown : file" should invoke chown with uid and
>> gid both set to -1, so that the file ownership and group doesn't
>> change but the setuid/setgid bits are cleared (and perhaps ACLs are
>> removed). This might be useful.
>
> POSIX seems to require owner[:group].
> Is it compliant to accept `:'?
Yes, as an upward-compatible extension. GNU chown already accepts
":group" as an extension, for example.