Actions
Bug #193
closedVirtual directory listings don't work on NetBSD if on NFS
Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:
Description
NetBSD/i386 2.0.2, lighttpd 1.3.14
response.c, http_list_directory
#ifdef HAVE_PATHCONF name_max = pathconf(dir->ptr, _PC_NAME_MAX); #else name_max = NAME_MAX; #endif
The pathconf fails (with EINVAL) if the file specified dir->ptr is on an NFS mount.
I think this behaviour is correct since the OS doesn't know the NFS server's limits.
I would suggest using NAME_MAX instead if pathconf returns -1.
-- support
Actions
Also available in: Atom