GNU bug report logs - #29788
chown: recursive operation with "-H" flag does not work as documented

Previous Next

Package: coreutils;

Reported by: Michael Orlitzky <michael <at> orlitzky.com>

Date: Wed, 20 Dec 2017 18:31:01 UTC

Severity: normal

Tags: notabug

Done: Bernhard Voelker <mail <at> bernhard-voelker.de>

Bug is archived. No further changes may be made.

Full log


Message #24 received at 29788 <at> debbugs.gnu.org (full text, mbox):

From: Michael Orlitzky <michael <at> orlitzky.com>
To: 29788 <at> debbugs.gnu.org
Subject: Re: bug#29788: chown: recursive operation with "-H" flag does not
 work as documented
Date: Wed, 20 Dec 2017 18:12:59 -0500
On 12/20/2017 04:52 PM, Paul Eggert wrote:
> On 12/20/2017 12:58 PM, Bernhard Voelker wrote:
>> Thus, I think this not a bug in chmod or the documentation, but in the
>> your expectations.
> 
> I think his expectations are what POSIX requires. For chown -H -R, POSIX 
> says that...

This is where I started off, but POSIX doesn't say anything about the
"--dereference" flag. When chown told me to pick either "-H" or "-L", I
thought it was asking me to pick one mode of operation, either

  a) chown -R -L, or
  b) chown -R -H

In fact, it was asking me to choose one of

  c) chown --dereference -R -L, or
  d) chown --dereference -R -H

Should "chown --dereference" be equivalent to "chown"? If so, then

  chown --dereference -R -H = chown -R -H

is specified by POSIX.

At this point, you could talk me into either interpretation.




This bug report was last modified 7 years and 153 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.