summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-10-05 13:22:38 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-10-13 09:49:37 -0400
commit8000e501cb806948cfbfa5797afb7a400b4ea7e2 (patch)
tree6a5715aea9ddfb0d99f413f9f2be45e615166b82 /src/db
parent36fc83f3f64bb16db7bef3e1cebe829424edacd1 (diff)
downloadsssd-8000e501cb806948cfbfa5797afb7a400b4ea7e2.tar.gz
sssd-8000e501cb806948cfbfa5797afb7a400b4ea7e2.tar.xz
sssd-8000e501cb806948cfbfa5797afb7a400b4ea7e2.zip
Do not fail if netgroup exists just update the attributes
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c
index 373ce37f2..68f4e88b1 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);