Greg Schafer wrote:
Jürg Billeter wrote:


The patch speaks for itself,


BTW, changing the problematic line to:

  && read(fd, &reiserfsb, sizeof(reiserfsb)) == sizeof(reiserfsb)

seems to also fix the problem. It's simpler and is more in line with the
other filesystem checks in that function. Maybe the above variant is more
correct? Thoughts?

I'm inclined to agree. Thanks to the explanations given in this thread I was able to reproduce the segfault, then patched it with the line above and the segfault disappeared. I'll put the patch into trunk and the gcc4 branch shortly.

Many thanks for everyone's feedback on this issue!

Regards,

Matt.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to