Possible bug in the Samba4 POSIX backend ...

Richard Sharpe rsharpe at richardsharpe.com
Tue Apr 5 17:14:49 GMT 2005


Hi,

When handling find first and find next, Samba4 hibernates directories.

The approach taken, though, has a problem. It closes the directory and
then re-opens it, and does a seekdir to a location returned with telldir
earlier on.

However, as the man page says for both FreeBSD and Linux, any offset
returned by telldir is not valid if you closedir the directory stream.

As a result, for large directories, SAMBA 4 returns a continuous stream of
the same entries ...

Regards
-----
Richard Sharpe, rsharpe[at]richardsharpe.com, rsharpe[at]samba.org,
sharpe[at]ethereal.com, http://www.richardsharpe.com


More information about the samba-technical mailing list