sysusers: many different errnos to express one condition
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 3 Mar 2020 09:18:32 +0000 (10:18 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 3 Mar 2020 10:56:25 +0000 (11:56 +0100)
commit08c7c3216bd52e65a32e087f8d2e052492024cf4
tree48f465edab38ef2aa4754c720c8dc16519bd392f
parentd54bb638750c57b9e27ee22b0ec660889fd82471
sysusers: many different errnos to express one condition

See https://bugzilla.redhat.com/show_bug.cgi?id=1807768. It turns
out that sysusers cannot query if the group exists:
Failed to check if group dnsmasq already exists: No such process
...
Failed to check if group systemd-timesync already exists: No such process

When the same command is executed later, the issue does not occur. Not sure why
the behaviour in the initial transaction is different. But let's accept all
errors that the man pages list. We check if the user/group exists before creating
anyway, so this seems pretty safe.
src/sysusers/sysusers.c