question regarding libsmbclient ´ s command lseek

Max Giesbert mgiesbert at
Fri Jan 7 16:18:53 GMT 2005

hi everyone,

hope this is the right place to post. i already tried the normal samba 
list(no response). please tell me if there´s a better one...

my question is:
to get the filesize of a remote file on a computer running xp sp1 i use 
the following command: long fileLength = smbc_lseek(my_fileHandle_, 0, 
SEEK_END) ; sadly it always returns just the offset(here 0). using 
SEEK_PUT or SEEK_CUR work as exspected...

i am using samba 3.0.10(i guess libsmbclient is part of it, right?) on 
fedora core 3 x86.

can anyone tell me if my approach is correct or am i am doing something 

thx for your help


More information about the samba-technical mailing list