From 4d6d92400cab57c53e3a093f8e21711a11c04780 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 8 Aug 2006 16:08:22 +0000 Subject: r17460: First step at fixing the build breakage with the groupmapping test. On Linux, F_RDLCK is defined to 0, for example NetBSD has it at 1. Still does not work fully though. Still investigating. This might also be interesting to Samba4. Volker (This used to be commit a1c3774e01710ae0edc89e05f7781d2928ea9319) --- source3/tdb/traverse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/tdb/traverse.c b/source3/tdb/traverse.c index d070e0a766..712504a764 100644 --- a/source3/tdb/traverse.c +++ b/source3/tdb/traverse.c @@ -261,6 +261,7 @@ TDB_DATA tdb_firstkey(struct tdb_context *tdb) if (tdb_unlock_record(tdb, tdb->travlocks.off) != 0) return tdb_null; tdb->travlocks.off = tdb->travlocks.hash = 0; + tdb->travlocks.lock_rw = F_RDLCK; if (tdb_next_lock(tdb, &tdb->travlocks, &rec) <= 0) return tdb_null; -- cgit