[Toybox] [PATCH] id: support numeric lookup.

Rob Landley rob at landley.net
Sun Nov 3 17:21:11 PST 2019


On 11/3/19 1:04 AM, enh via Toybox wrote:
> Fall back to converting the "name" to an integer and calling getpwuid().
> We need to update `username` for the later call to getgrouplist().
> 
> Also fix the separator printing logic to avoid a trailing ',' on `id 0`.
> 
> Switch to FLAG() and move some declarations down to where they can be
> initialized, both for clarity.

toys/posix/id.c:159:16: error: implicit declaration of function 'FLAGS'
[-Werror=implicit-function-declaration]
     } else if (FLAGS(Z)) error_exit("%s disabled", lsm_name());
                ^~~~~

I fixed it.

Rob



More information about the Toybox mailing list