smbc_lseek libsmbclient ?

Richard Sharpe rsharpe at
Sat May 14 23:25:50 GMT 2005

On Sat, 14 May 2005, Matthieu Tourne wrote:

> Hello,
> I'm using smbc_lseek(fd,0,SEEK_END), to get the length of a file. But
> it fails with files bigger than 4gb even when compiling with :
> (I don't know if it's useful because the library is a .so)
> The offset returned by the function is 64bit long but the value is
> incoherent (not -1).
> (actually it's 801613448, although the  file is 5096580744)

It's possible that we are assigning this to an intermediate uint32_t
before returning it. I will check in a little while.

Richard Sharpe, rsharpe[at], rsharpe[at],

More information about the samba-technical mailing list