[issue2030] fstatfs() fails in chroot environments

Matthew Dillon (via DragonFly issue tracker) sinknull at leaf.dragonflybsd.org
Fri Apr 1 16:07:31 PDT 2011


Matthew Dillon <dillon at apollo.backplane.com> added the comment:

fixed in 92734e3dc3576d68a28eb7d539dd48de730ab82d.  fstat[v]fs() was using the
wrong mount pointer when calling cache_fullpath().

Also note that the test program supplied is buggy, this line is broken and
causes the fd to be assigned the value 0:

if (fd = open(FILE_PATH, O_RDONLY) == -1) ...  should be
if ((fd = open(FILE_PATH, O_RDONLY)) == -1) ...

-Matt

----------
status: chatting -> resolved

_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue2030>
_____________________________________________________






More information about the Bugs mailing list