On 05/31/2016 03:36 PM, Rob Landley wrote:
[...]
The next question is, should it _attempt_ to chown if geteuid() isn't 0?
I suppose that depends on whether there is ever a case where non-root
may successfully chown a file. This is probably possible using
capabilities (CAP_CHOWN) but I've never tried.
[...]
Yup, it still tries it, it just silently fails for non-root. (Why on
EARTH it tries to change it to -1 the second time, I couldn't tell you.)
Because this:
http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/cp.c?id=v8.21#n333
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net