[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#587377: debian-policy: Decide on arbitrary file/path names limit



On Wed, 02 Mar 2011, Sean Finney wrote:
> Having a warning in lintian for arbitrarily long (perhaps >= 256)
> filenames is totally reasonable i'd say, but there's no reason to

Most (all?) filesystems commonly used in Debian systems will limit you to
somewhere close to 254 characters per filename (paths can be longer).

Do not get paths and filenames confused.  Filenames go in the inode and
their lenght is limited by the filesystem.  Path length is limited by the
applications, libc, and (maybe) the kernel.

PATH_MAX is 4096, go anywhere close to that, and a LOT of applications will
give you real grief.

Policy should at least mention this.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



Reply to: