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...
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: womble. decadentplace. org.uk/ readdir_ r-advisory. html
http://
There is no indication in the standard that fpathconf should ever be returning www.opengroup. org/onlinepubs/ 009695399/ functions/ pathconf. html
0:
http://
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...