From 8000e501cb806948cfbfa5797afb7a400b4ea7e2 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Tue, 5 Oct 2010 13:22:38 +0200 Subject: Do not fail if netgroup exists just update the attributes --- src/db/sysdb_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db/sysdb_ops.c') diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 373ce37f..68f4e88b 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); -- cgit