]> git.ipfire.org Git - thirdparty/coreutils.git/commit
groups: do not exit early
authorJim Meyering <meyering@fb.com>
Sat, 8 Jul 2017 11:01:55 +0000 (13:01 +0200)
committerJim Meyering <meyering@fb.com>
Mon, 10 Jul 2017 08:17:57 +0000 (10:17 +0200)
commit83ed6619479710d5979108f85b6bae648bb75061
tree8154b55e3b59dbd7fe1aa88f5d716395549fd5b5
parented57568ea5fc9dcca8fd4dce00bb3085727e119a
groups: do not exit early

Most programs take care to operate on all command-line-specified
operands before exiting.  That is an important feature that allows
to identify all problems with the first run.  However, groups would
exit upon the first problematic user name.
Bug introduced via commit v6.10-56-g167b8025ac.
* src/groups.c (main): Do not exit immediately upon error.
* tests/misc/groups-process-all.sh: New file. Test for this.
* tests/local.mk (all_tests): Add it.
* NEWS (Bug fixes): Mention this.
NEWS
src/groups.c
tests/local.mk
tests/misc/groups-process-all.sh [new file with mode: 0755]