]> git.ipfire.org Git - thirdparty/systemd.git/commit
userdb: Fix return value of groupdb_by_name()
authorMichal Koutný <mkoutny@suse.com>
Mon, 3 Mar 2025 18:15:42 +0000 (19:15 +0100)
committerMichal Koutný <mkoutny@suse.com>
Mon, 3 Mar 2025 18:26:52 +0000 (19:26 +0100)
commiteaeb96125a16f7cf7b071391c2d3456a8397f251
tree69698a85e33dd40cbbc38cfe87757e2a768e31bd
parent5eceb5a7a2f46102387505261af722d1f11f3263
userdb: Fix return value of groupdb_by_name()

The commit 7419291670 ("userdb: move UserDBMatch handling from userdbctl
into generic userdb code to allow it to be done server side")
unintentionally passes return value from group_record_match() as its
return value and thus diverges from other search functions that return 0
on success. Align that by returning 0 instead of 1, all existing callers
are invariant to this change.
src/shared/userdb.c