There is one signedness issue in tdb which prevents traverses of TDB records
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 6 Aug 2009 03:13:42 +0000 (13:13 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 6 Aug 2009 03:13:42 +0000 (13:13 +1000)
commit252f7da702fd0409f7bfff05ef594911ededa32f
tree4e3092506f7ad8ec312cb02abbbc5de7c141ee58
parent740a40e74eb79234e1c40ca88768202b3c0af2b9
There is one signedness issue in tdb which prevents traverses of TDB records
over the 2G offset on systems which support 64 bit file offsets.  This fixes
that case.

On systems with 32 bit offsets, expansion and fcntl locking on these records
will fail anyway.  SAMBA already does '#define _FILE_OFFSET_BITS 64' in
config.h (on my 32-bit x86 Linux system at least) to get 64 bit file offsets.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/tdb/common/traverse.c