[issue992] telldir/seekdir broken [PATCH]
Matthew Dillon
dillon at apollo.backplane.com
Tue Apr 22 13:26:37 PDT 2008
:New submission from Gary Stanley <gary at velocity-servers.net>:
:
:FreeBSD has a bug in telldir that returns incorrect results, causing memory=20
:leaks and other odd behavior. This bug was fixed in NetBSD, and I've create=
:d a=20
:patch based on NetBSD's changes. This will also add a pointer to dd_interna=
:l=20
:in dirent.h, which will probably require a version bump because the size of=20
:that struct will change. I didn't bother bumping version here because it se=
:ems=20
:it didn't effect anything (ls, du, etc), but its better to be safe than sor=
:ry.
:
:The code to generate the issue is here:
:
:http://leaf.dragonflybsd.org/~gary/patches/libc/seekdir-twice.c
Ok, I see what's going on here. I'm going to play with it a bit,
I don't entirely like NetBSD's solution.
-Matt
More information about the Bugs
mailing list