summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-08 16:08:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:35 -0500
commit4d6d92400cab57c53e3a093f8e21711a11c04780 (patch)
tree8eccf96e46bbfe682624167ec52c909171444253
parent3bb5b158017d5bad82bfb4a9e29187549e665446 (diff)
downloadsamba-4d6d92400cab57c53e3a093f8e21711a11c04780.tar.gz
samba-4d6d92400cab57c53e3a093f8e21711a11c04780.tar.bz2
samba-4d6d92400cab57c53e3a093f8e21711a11c04780.zip
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)
-rw-r--r--source3/tdb/traverse.c1
1 files changed, 1 insertions, 0 deletions
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;