Project

General

Profile

Actions

Bug #826

closed

name_max default should be 255 and not 256

Added by Anonymous about 18 years ago. Updated over 17 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

Actions #1

Updated by jan over 17 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

Actions

Also available in: Atom