The Samba-Bugzilla – Bug 3270
tdb use of tdb_off is not 64bit clean
Last modified: 2005-11-18 02:51:47 UTC
The tdb functions use an internal type to represent file offsets; tdb_off. This is always defined as a unsigned int (u32) type. On certain OSes where off_t is 64bit (Syllable for example), when a tdb_off type is passed directly to pwrite(), pread() or lseek() where off_t is expected the seek may fail.
The obvious fix is to cast tdb_off to off_t whenever it is passed to an external function expecting off_t
Created attachment 1579 [details]
Cast tdb_off to off_t for 64bit cleanlyness