Project

General

Profile

Bug #826

name_max default should be 255 and not 256

Added by Anonymous almost 14 years ago. Updated about 13 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

http://trac.lighttpd.net/trac/browser/tags/lighttpd-1.4.11/src/mod_dirlisting.c#L606
name_max = 256; /* stupid default */

This default should be 255 (as found in limits.h).

-- raphael.huck

#1

Updated by jan over 13 years ago

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

if PATH_MAX exists in limits.h we take it, we are only handling the case if PATH_MAX is not set.

I changed the default as suggested in r1733

Also available in: Atom