summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-08-07 02:57:46 +0000
committerMiles Bader <miles@gnu.org>1997-08-07 02:57:46 +0000
commitcef2170e6f5789b57e9da2bec1215da53e260c79 (patch)
tree6e6ff996ee208eb9456281de112f0524a98e381e /libshouldbeinlibc
parent70ae496acfdcafbc4d4182e0bc72a1d9e62dd211 (diff)
(idvec_merge_implied_gids):
Do all ids in UIDS even if one returns an error.
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r--libshouldbeinlibc/idvec-impgids.c8
1 files changed, 6 insertions, 2 deletions
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;
}