summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-20 08:50:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:36 -0500
commitb7be627e35b81fb2df8cdd83d129713aa8f0127a (patch)
tree4d68da3e607dfd0b194f9ef67f7dff43862340bd /source4
parentf0c1c513346c8c97b057124bbc4dac6c8d500eed (diff)
downloadsamba-b7be627e35b81fb2df8cdd83d129713aa8f0127a.tar.gz
samba-b7be627e35b81fb2df8cdd83d129713aa8f0127a.tar.bz2
samba-b7be627e35b81fb2df8cdd83d129713aa8f0127a.zip
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)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c3
1 files changed, 3 insertions, 0 deletions
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;
}
}