git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ea5db4
)
tdb2: log an error when calling tdb_store() on read-only TDB in tdb1 backend.
author
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:38:13 +0000
(08:08 +0930)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:38:13 +0000
(08:08 +0930)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit
b236a8dcc37bb864b632a2898a64f3c9bf75b4ac
)
lib/tdb2/tdb1_tdb.c
patch
|
blob
|
history
diff --git
a/lib/tdb2/tdb1_tdb.c
b/lib/tdb2/tdb1_tdb.c
index 99b83ab72d08d7e6b733a1572063c9f8d240ca9d..0e3cc13caba9f9ab4093de2c0325a34012b74715 100644
(file)
--- a/
lib/tdb2/tdb1_tdb.c
+++ b/
lib/tdb2/tdb1_tdb.c
@@
-591,7
+591,9
@@
int tdb1_store(struct tdb_context *tdb, TDB_DATA key, TDB_DATA dbuf, int flag)
assert(tdb->flags & TDB_VERSION1);
if ((tdb->flags & TDB_RDONLY) || tdb->tdb1.traverse_read) {
- tdb->last_error = TDB_ERR_RDONLY;
+ tdb->last_error = tdb_logerr(tdb, TDB_ERR_RDONLY,
+ TDB_LOG_USE_ERROR,
+ "tdb_store: read-only tdb");
return -1;
}