From 29d28764ae9d04f9225b1c87fef883fa776c4820 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Tue, 5 Oct 2010 13:22:38 +0200 Subject: [PATCH 4/9] Do not fail if netgroup exists just update the attributes --- src/db/sysdb_ops.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 373ce37..68f4e88 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -1198,7 +1198,7 @@ int sysdb_add_netgroup(struct sysdb_ctx *ctx, /* try to add the netgroup */ ret = sysdb_add_basic_netgroup(ctx, domain, name, description); - if (ret) goto done; + if (ret && ret != EEXIST) goto done; if (!attrs) { attrs = sysdb_new_attrs(tmp_ctx); -- 1.7.2.3