id: -Zn/-Zr: avoid an invalid diagnostic
authorJim Meyering <meyering@redhat.com>
Fri, 27 Apr 2012 19:30:52 +0000 (21:30 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 27 Apr 2012 21:01:21 +0000 (23:01 +0200)
commitc83f723267dff03e954ba77454d51a691dfba1c0
tree8c3fc2784fdf2c2b65645516ba69a60ed272dde9
parentc8b8279d2bd9ed1005ebbcca018446d3a245b97c
id: -Zn/-Zr: avoid an invalid diagnostic

* src/id.c (main): Using -Z with -r or -n would fail with "id: cannot
print only names or real IDs in default format", in spite of that "-Z",
which specifies a non-default format.  Now, it succeeds and ignores
the -n or -r option.  The error was that the test for default_format
was not updated when I added the new --context (-Z) option in
commit v6.9-33-g5320d0f.
src/id.c