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 #27 received at 29788-done <at> debbugs.gnu.org (full text, mbox):

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Michael Orlitzky <michael <at> orlitzky.com>, 29788-done <at> debbugs.gnu.org
Subject: Re: bug#29788: chown: recursive operation with "-H" flag does not
 work as documented
Date: Thu, 21 Dec 2017 00:19:41 +0100
On 12/20/2017 10:26 PM, Michael Orlitzky wrote:
>    $ chown --recursive --dereference root foo
> 
> which emits an error:
> 
>    chown: -R --dereference requires either -H or -L

Hmm, this looks inconsistent as well: --dereference is the
default if neither --dereference nor -h|--no-dereference are
specified, but 'chown -R user dir' does not require -H or
-L.

chown(1) hasn't been changed regarding this behavior since
2006 (coreutils-6.8), so this is obviously a rare edge case.

FWIW, the test-suite for chown lacks exactly that case.

Have a nice day,
Berny




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.