[SSSD] [PATCH] SYSDB: Return errno, not ldb error code
Jakub Hrozek
jhrozek at redhat.com
Sun Aug 17 18:45:43 UTC 2014
Hi,
for one of my patches I tried to use ldb permissive modification before
realising it's not the best approach. At least I found this little bug
in the sysdb code.
-------------- next part --------------
>From de9f9376b6d5ed098a268a7a1f5d04bca1c8d96f Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Sat, 16 Aug 2014 19:41:40 +0200
Subject: [PATCH] SYSDB: Return errno, not ldb error code
---
src/db/sysdb_ops.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c
index 252097f28b7634d13d91392b63abdf0640bcfa19..f4d48e89c49879ea282c9e7637e8255028e95758 100644
--- a/src/db/sysdb_ops.c
+++ b/src/db/sysdb_ops.c
@@ -159,6 +159,9 @@ int sss_ldb_modify_permissive(struct ldb_context *ldb,
talloc_free(req);
+ if (ret) {
+ ret = sysdb_error_to_errno(ret);
+ }
return ret;
}
--
1.9.3
More information about the sssd-devel
mailing list