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.
This commit is contained in:
Michal Koutný
2025-03-03 19:26:52 +01:00
parent 5eceb5a7a2
commit eaeb96125a
+1 -1
View File
@@ -1356,7 +1356,7 @@ int groupdb_by_name(const char *name, const UserDBMatch *match, UserDBFlags flag
if (ret)
*ret = TAKE_PTR(gr);
return r;
return 0;
}
static int groupdb_by_gid_fallbacks(