Project

General

Profile

Actions

Bug #193

closed

Virtual directory listings don't work on NetBSD if on NFS

Added by Anonymous almost 20 years ago. Updated over 18 years ago.

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

#1

Updated by jan over 19 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed
Actions

Also available in: Atom