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

2017-12-20 Thread Bernhard Voelker
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 speci

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

2017-12-20 Thread Michael Orlitzky
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

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

2017-12-20 Thread Bernhard Voelker
On 12/20/2017 10:52 PM, Paul Eggert wrote: For chown -H -R, POSIX says that if "a symbolic link referencing a file of type directory is specified on the command line,/chown/ shall change the user ID (and group ID, if specified) of the directory referenced by the symbolic link and all files in th

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

2017-12-20 Thread Paul Eggert
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 if "a symbolic link referencing a file of type directory is specified on

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

2017-12-20 Thread Michael Orlitzky
On 12/20/2017 03:58 PM, Bernhard Voelker wrote: > > I think there is something else going on you didn't consider: > >--dereference affect the referent of each symbolic link (this is > the default), rather than the symbolic link itself > > ... > > Thus, I t

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

2017-12-20 Thread Bernhard Voelker
tag 29788 notabug stop On 12/20/2017 07:24 PM, Michael Orlitzky wrote: The documentation for the "-H" flag to chown says, The following options modify how a hierarchy is traversed when the -R option is also specified. If more than one is specified, only the final one takes effect

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

2017-12-20 Thread Michael Orlitzky
The documentation for the "-H" flag to chown says, The following options modify how a hierarchy is traversed when the -R option is also specified. If more than one is specified, only the final one takes effect. -H if a command line argument is a symbolic link to a directory,