DragonFly BSD
DragonFly bugs List (threaded) for 2011-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[issue2030] fstatfs() fails in chroot environments


From: "Matthew Dillon \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 01 Apr 2011 23:06:28 +0000

Matthew Dillon <dillon@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@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue2030>
_____________________________________________________




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]