[fpc-pascal] Findfirst/findnext with a samba share
Max Vlasov
max.vlasov at gmail.com
Fri Mar 1 09:14:50 CET 2013
Hi,
Working with lazarus on Linux Mint I noticed that when I mount a windows
shared with "Connect to server", everything works fine (Nautilus, Midnight
Commander, Lazarus file operations). But meeting that .gvfs folder is
hidden, I tried to mount "mount -t cifs" directly in the shell.
After such mapping Nautilus and mc worked the same, but Lazarus stopped
seeing some of files (for example 3 from the folder containing 76).
I tried to run lazarus in the debugger and narrowed it to findFirst/Next
that calls fpReadDir and this one calls linux' getdents64 to list directoty
entries (since it's fpc rtl, I'm posting here). Querying for mentioning
this at the web, I found that there were reports in the bugtracker that
attributed this to a samba bug (
https://bugzilla.samba.org/show_bug.cgi?id=8044 ).
The question is what is different in nautilus and midnight commander
comparing to fpc directoy-listing functions that allows them to list
directories correctly in the bug's case?
Thanks,
Max Vlasov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130301/c928c32c/attachment.html>
More information about the fpc-pascal
mailing list