From b7be627e35b81fb2df8cdd83d129713aa8f0127a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 20 Jun 2005 08:50:53 +0000 Subject: r7784: give an error in ldb_tdb for invalid modify flags. The "whenChanged" bug was being silently ignored with the tdb backend because of this bug. A case where the ldap backend was right, and the tdb backend was wrong! (This used to be commit ddb26db763c314049043d80d27113226c0f2e656) --- source4/lib/ldb/ldb_tdb/ldb_tdb.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4') diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c index 596ede8a4e..f8c98d6712 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c +++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c @@ -679,6 +679,9 @@ int ltdb_modify_internal(struct ldb_module *module, const struct ldb_message *ms } } break; + default: + ltdb->last_err_string = "Invalid ldb_modify flags"; + goto failed; } } -- cgit