[Toybox] [PATCH] Remove unused variable in toys/id.c
Rob Landley
rob at landley.net
Wed Feb 29 06:17:05 PST 2012
On 02/27/2012 06:26 PM, Georgi Chorbadzhiyski wrote:
> The attached patch fixes compiler warning by removing an unused but set
> variable.
>
> toys/id.c: In function 'id_main':
> toys/id.c:63:8: warning: variable 'gid' set but not used
> [-Wunused-but-set-variable]
Hmmm... What this patch points out is that id.c can't ever show
effective group ID, it'll always show the data out of /etc/passwd that
corresponds to this user even if the setgid bit was set on the current
executable.
That's a bug, and I need to fix it. Good catch.
Thanks,
Rob
1330525025.0
More information about the Toybox
mailing list