summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Kos <okos@redhat.com>2012-12-14 11:33:16 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-12-17 09:51:54 +0100
commit2bc09619e5c8f8c02bcd169ade1878ef28aedb4c (patch)
tree850510dc184bd349e205e29546f156378f2d4f58
parentda7ed242898bafe5d84d4dd2b4253d20e4105516 (diff)
downloadsssd-2bc09619e5c8f8c02bcd169ade1878ef28aedb4c.tar.gz
sssd-2bc09619e5c8f8c02bcd169ade1878ef28aedb4c.tar.bz2
sssd-2bc09619e5c8f8c02bcd169ade1878ef28aedb4c.zip
PROXY: fix groups caching
https://fedorahosted.org/sssd/ticket/1685 Properly react on deleting group which was not found in sysdb.
-rw-r--r--src/providers/proxy/proxy_id.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c
index 060c4723..aa98507b 100644
--- a/src/providers/proxy/proxy_id.c
+++ b/src/providers/proxy/proxy_id.c
@@ -867,6 +867,9 @@ static int get_gr_name(TALLOC_CTX *mem_ctx,
" deleting!\n", name));
ret = sysdb_delete_group(sysdb, NULL, gid);
+ if (ret == ENOENT) {
+ ret = EOK;
+ }
goto done;
}
@@ -936,6 +939,9 @@ static int get_gr_gid(TALLOC_CTX *mem_ctx,
" deleting!\n", gid));
ret = sysdb_delete_group(sysdb, NULL, gid);
+ if (ret == ENOENT) {
+ ret = EOK;
+ }
goto done;
}