CVSROOT:        /cvs
Module name:    src
Changes by:     schwa...@cvs.openbsd.org        2013/11/05 02:36:05

Modified files:
        lib/libc/gen   : telldir.c 

Log message:
Make sure seekdir(3) works even when dirp->dd_buf still contains some
pending entries: At the time of the lseek(2), also invalidate the
buffer in order to force getdents(2) during the next readdir(3).
Because this throws away buffered data that could still be used
in some cases, this is not particularly efficient, but at least
it works; i will suggest optimizations soon.

Bug found when investigating perl-5.18.1/t/op/threads-dirh.t
that was reported broken by Andrew Fresh <andrew at afresh1 dot com>.

ok guenther@ deraadt@

Reply via email to