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
Updated by jan over 19 years ago
- Status changed from New to Fixed
- Resolution set to fixed
fixed in 1.4.1 (changeset r600)
Updated by Anonymous over 19 years ago
doesn't worked in OpenBSD too, but
there is the patch that fixes the issue.
http://trac.lighttpd.net/trac/changeset/600
-- nikns
Actions
Also available in: Atom