[Toybox] How do I tell cyanogenmod they're wrong?

Tom Marshall tom at cyngn.com
Wed Jun 1 09:33:23 PDT 2016


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




More information about the Toybox mailing list