From cef2170e6f5789b57e9da2bec1215da53e260c79 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 7 Aug 1997 02:57:46 +0000 Subject: (idvec_merge_implied_gids): Do all ids in UIDS even if one returns an error. --- libshouldbeinlibc/idvec-impgids.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libshouldbeinlibc') diff --git a/libshouldbeinlibc/idvec-impgids.c b/libshouldbeinlibc/idvec-impgids.c index 97c849a2..62417e12 100644 --- a/libshouldbeinlibc/idvec-impgids.c +++ b/libshouldbeinlibc/idvec-impgids.c @@ -113,7 +113,11 @@ idvec_merge_implied_gids (struct idvec *gids, const struct idvec *uids) { int i; error_t err = 0; - for (i = 0; i < uids->num && !err; i++) - err = _merge_implied_gids (gids, uids->ids[i]); + for (i = 0; i < uids->num; i++) + { + error_t this_err = _merge_implied_gids (gids, uids->ids[i]); + if (this_err && !err) + err = this_err; + } return err; } -- cgit v1.2.3