commit | e26b93795714c116df0faeaa56a2078ce7eba54d | [log] [tgz] |
---|---|---|
author | Guy Harris <guy@alum.mit.edu> | Thu Sep 27 20:44:34 2012 -0700 |
committer | Guy Harris <guy@alum.mit.edu> | Thu Sep 27 20:44:34 2012 -0700 |
tree | 3e3ee5488f3bebd60e8263684b3026d536a1ad8f | |
parent | b8c7b8227fdc0112b1a8e70a35a6e424f426504c [diff] |
Use PATH_MAX, not NAME_MAX. NAME_MAX is the maximum length of a file pathname *component*; PATH_MAX is the maximum length of a file pathname. We're dealing with pathnames, so use PATH_MAX. (On some systems, NAME_MAX can be as low as 14, presumably for binary compatibility with V7-era data structures containing file names, as there are probably few if any non-historic UN*Xes around with 14-character file name limitations.) Boost the default PATH_MAX to 1024 while we're at it.