Comment 19 for bug 241619

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

See this most recent comment from Havoc:

------- Comment #11 From Havoc Pennington 2009-03-01 08:42:50 PST [reply] -------

This code requires some care:
http://womble.decadentplace.org.uk/readdir_r-advisory.html

There is no indication in the standard that fpathconf should ever be returning
0:
http://www.opengroup.org/onlinepubs/009695399/functions/pathconf.html

Surely this is a bug in fuse.

Not sure falling back to PATH_MAX is safe. In fact I think it isn't. readdir_r
will smash the stack if the filename is longer than the buffer...