There is one signedness issue in tdb which prevents traverses of TDB records over...
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 6 Aug 2009 03:13:42 +0000 (13:13 +1000)
committerStefan Metzmacher <metze@samba.org>
Wed, 16 Dec 2009 07:03:42 +0000 (08:03 +0100)
commit2d768f664e6db65b3b7e0c732f33ee2b806892f9
tree409a484843032fbbf393e243e25fda2014fc0f33
parentb883d19a495a41a22db37f9c2cf6250fee529de0
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>
(cherry picked from samba commit 252f7da702fd0409f7bfff05ef594911ededa32f)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/common/traverse.c