J. Bruce Fields <bfie...@fieldses.org> wrote:

> You're assuming no filesystem uses -1 as a cookie?
> Might be true, but it's taking a small chance.

Latest version does not work like this anymore: when EOF is reached,
current offset is recorded in pfd->dir_eof, and we fire EINVAL if
seekdir() failed to set the offset and the offset is not  pfd->dir_eof:

                if (telldir(dir) != (long)off && off != pfd->dir_eof)

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
m...@netbsd.org
_______________________________________________
Gluster-devel mailing list
Gluster-devel@gluster.org
http://supercolony.gluster.org/mailman/listinfo/gluster-devel

Reply via email to