Large file support (files >=4GB) was broken in libsmbclient due to size_t being
used as the type for passing file sizes and offsets. size_t does not grow to 64
bits when -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 flags are used. The
attached patch fixes this by using the internal type SMB_OFF_T in place of
size_t. Note that there are numerous other uses of size_t which may or may not
be correct. Those have not been verified.
This bug also supercedes #2447, as that patch is included herein.
Created attachment 1059 [details]
patch to fix this bug
applying patch to SAMBA_3_0 svn tree.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.