bug-coreutils
[Top][All Lists]
Advanced

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

Re: chown should catch null owner:group


From: Jim Meyering
Subject: Re: chown should catch null owner:group
Date: Mon, 18 Feb 2008 21:20:35 +0100

address@hidden wrote:
> LW> "chown -R ." gave an error
> Try
> DJ> chown -R . file
> which should emit
> "Holmes, you think you are changing the owner of FILE to be the same
> as the owner of ".", but you have actually typed something else (-R
> means recursive) which is an absolute error, about which the new
> improved chown command will hereby exit 1".

I think it makes sense to diagnose a spec of "." as invalid.
If you want the no-op spec, you can use ":", and as Dan points
out, otherwise it's too easy for chown to interpret an intended
FILE argument of "." as a spec.

Any scripts that rely on "chown . FILE" succeeding should
have been changed long ago.

Does anyone want to work on this?




reply via email to

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