summaryrefslogtreecommitdiffstats
path: root/lib/tdb/common
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-05-06 11:52:49 +0200
committerStefan Metzmacher <metze@samba.org>2014-05-12 21:07:04 +0200
commite77cbe252f68880b940722ef1291802c4677a435 (patch)
tree922d89558f345064da8083579005ff6339cfaf17 /lib/tdb/common
parentff2b896edd9df9ce04e572e6bd569f51cc4b500e (diff)
downloadsamba-e77cbe252f68880b940722ef1291802c4677a435.tar.gz
samba-e77cbe252f68880b940722ef1291802c4677a435.tar.xz
samba-e77cbe252f68880b940722ef1291802c4677a435.zip
tdb: return ENOSYS if the tdb was created with spinlocks.
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
Diffstat (limited to 'lib/tdb/common')
-rw-r--r--lib/tdb/common/open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tdb/common/open.c b/lib/tdb/common/open.c
index 789bc73d3d..d5c0432111 100644
--- 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;