git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff2b896
)
tdb: return ENOSYS if the tdb was created with spinlocks.
author
Stefan Metzmacher
<metze@samba.org>
Tue, 6 May 2014 09:52:49 +0000
(11:52 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 12 May 2014 19:07:04 +0000
(21:07 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon May 12 21:07:04 CEST 2014 on sn-devel-104
lib/tdb/common/open.c
patch
|
blob
|
history
diff --git
a/lib/tdb/common/open.c
b/lib/tdb/common/open.c
index 789bc73d3d762fe5a84c7db6bbe7befa5528905f..d5c043211115e1b7d2ba3337919a092c8ce3bb99 100644
(file)
--- a/
lib/tdb/common/open.c
+++ b/
lib/tdb/common/open.c
@@
-392,6
+392,7
@@
_PUBLIC_ struct tdb_context *tdb_open_ex(const char *name, int hash_size, int td
if (header.rwlocks != 0 &&
header.rwlocks != TDB_HASH_RWLOCK_MAGIC) {
TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_open_ex: spinlocks no longer supported\n"));
+ errno = ENOSYS;
goto fail;
}
tdb->hash_size = header.hash_size;