Libsmbclient fails to handle filse sizes more than 4GB

Richard Sharpe rsharpe at
Wed Apr 23 17:03:53 GMT 2003

On Wed, 23 Apr 2003, Abhijeet Paturkar wrote:

> Hi all,
> We are using libsmbclient library in our product.
> The lib. works absolutely fine with files sizes less than 4GB.
> It fails for more than 4GB sizes.
> Following is the program demonstrating this 
> The readers are requested to modify the code to change hardcoded values.
> Does any one uses libsmbclient fore dealing with files more than 4GB, if
> yes please help us 
> to use it in right way. 

Ummm, what version of Samba and thus libsmbclient are you using?

libsmbclient has no hard-coded values in it in this regard, however, the 
underlying libsmb routines that it uses were not fixed to use the correct 
SMBwrite and SMBread formats to handle large offsets until Samba 2.2.8, I 
believe, and Samba 3.0alpha 21 or 22, I think.

Richard Sharpe, rsharpe[at], rsharpe[at], 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 11417 bytes
Url :

More information about the samba-technical mailing list