summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-05-31 10:17:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:45 -0500
commit3dcbe5702d795e0525029c73ef1aad58ece58309 (patch)
treee4dccc062b55367e0538c0c7569a29ce2909ce9b
parentb0bcd8a2010c8426f45a3d3c1f9911754f9e2936 (diff)
downloadsamba-3dcbe5702d795e0525029c73ef1aad58ece58309.tar.gz
samba-3dcbe5702d795e0525029c73ef1aad58ece58309.tar.bz2
samba-3dcbe5702d795e0525029c73ef1aad58ece58309.zip
r15978: - pass the error code back to the caller...
- we were giving OPERATIONS_ERROR in all cases:-( - we now pass ALREADY_EXIST fine to the caller, and the code in libnet_site.c is happy again. - this bug wasn't noticed for a long time because the ldb_ildap code always passed SUCCESS to it's caller metze (This used to be commit 7b9d7119205c442f338deab07122ce1548bad9b6)
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
index 629a18b9c6..29c2703644 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
@@ -262,7 +262,7 @@ static int ltdb_add_internal(struct ldb_module *module, const struct ldb_message
ret = ltdb_check_special_dn(module, msg);
if (ret != LDB_SUCCESS) {
- return LDB_ERR_OPERATIONS_ERROR;
+ return ret;
}
if (ltdb_cache_load(module) != 0) {
@@ -271,7 +271,7 @@ static int ltdb_add_internal(struct ldb_module *module, const struct ldb_message
ret = ltdb_store(module, msg, TDB_INSERT);
if (ret != LDB_SUCCESS) {
- return LDB_ERR_OPERATIONS_ERROR;
+ return ret;
}
ret = ltdb_modified(module, msg->dn);