[Toybox] [PATCH] id.c: fix -nG.

enh enh at google.com
Mon Nov 4 21:04:42 PST 2019


The previous patch broke -nG, so move the -G code back to showone()
which handles -n.

Add the missing tests for the various uses of -n.

Also refactor the code to avoid the need to test optflags directly.
---
 tests/id.test   |  3 +++
 toys/posix/id.c | 65 +++++++++++++++++++++++++++----------------------
 2 files changed, 39 insertions(+), 29 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-id.c-fix-nG.patch
Type: text/x-patch
Size: 4529 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20191104/ce7c9adf/attachment-0002.bin>


More information about the Toybox mailing list