[BusyBox] [PATCH] add -G to id
Vladimir N. Oleynik
dzo at simtreas.ru
Thu Dec 9 08:55:52 UTC 2004
Tito,
> + /* Don't allow -G with -u or -g */
> + -> || (flags & PRINT_GROUPS && (flags & JUST_USER || flags & JUST_GROUP)))
> bb_show_usage();
>
> I think this line could be substituted by setting
>
> bb_opt_complementaly = "u~g:g~u";
>
> to:
>
> bb_opt_complementaly = "u~g:g~u:G~u:u~G:G~g:g~G";
>
> Maybe this could save some space.
Or not. ;) (25 bytes with '\0' aling to 28 bytes)
But
bb_opt_complementaly = "u~g:g~u:G~ug:u~G:g~G";
21 bytes aligned to 24 bytes and may be save some space and identicaly.
--w
vodz
More information about the busybox
mailing list