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.
1 file changed
tree: 3e3ee5488f3bebd60e8263684b3026d536a1ad8f
  1. lbl/
  2. missing/
  3. tests/
  4. Win32/
  5. win32/
  6. .cvsignore
  7. .gitattributes
  8. .gitignore
  9. acconfig.h
  10. aclocal.m4
  11. addrtoname.c
  12. addrtoname.h
  13. af.c
  14. af.h
  15. ah.h
  16. aodv.h
  17. appletalk.h
  18. arcnet.h
  19. atime.awk
  20. atm.h
  21. atmuni31.h
  22. bgp.h
  23. bootp.h
  24. bpf_dump.c
  25. CHANGES
  26. chdlc.h
  27. checksum.c
  28. config.guess
  29. config.h.in
  30. config.sub
  31. configure
  32. configure.in
  33. cpack.c
  34. cpack.h
  35. CREDITS
  36. dccp.h
  37. decnet.h
  38. decode_prefix.h
  39. enc.h
  40. esp.h
  41. ether.h
  42. ethertype.h
  43. extract.h
  44. fddi.h
  45. forces.h
  46. gmpls.c
  47. gmpls.h
  48. gmt2local.c
  49. gmt2local.h
  50. icmp6.h
  51. ieee802_11.h
  52. ieee802_11_radio.h
  53. igrp.h
  54. in_cksum.c
  55. install-sh
  56. INSTALL.txt
  57. interface.h
  58. ip.h
  59. ip6.h
  60. ipfc.h
  61. ipnet.h
  62. ipproto.c
  63. ipproto.h
  64. ipsec_doi.h
  65. ipx.h
  66. isakmp.h
  67. l2tp.h
  68. l2vpn.c
  69. l2vpn.h
  70. lane.h
  71. LICENSE
  72. llc.h
  73. machdep.c
  74. machdep.h
  75. Makefile-devel-adds
  76. Makefile.in
  77. makemib
  78. mib.h
  79. mkdep
  80. mpls.h
  81. nameser.h
  82. netbios.h
  83. netdissect.h
  84. nfs.h
  85. nfsfh.h
  86. nlpid.c
  87. nlpid.h
  88. ntp.h
  89. oakley.h
  90. ospf.h
  91. ospf6.h
  92. oui.c
  93. oui.h
  94. packetdat.awk
  95. parsenfsfh.c
  96. pcap-missing.h
  97. pcap_dump_ftell.c
  98. PLATFORMS
  99. pmap_prot.h
  100. ppi.h
  101. ppp.h
  102. print-802_11.c
  103. print-802_15_4.c
  104. print-ah.c
  105. print-aodv.c
  106. print-ap1394.c
  107. print-arcnet.c
  108. print-arp.c
  109. print-ascii.c
  110. print-atalk.c
  111. print-atm.c
  112. print-babel.c
  113. print-beep.c
  114. print-bfd.c
  115. print-bgp.c
  116. print-bootp.c
  117. print-bt.c
  118. print-carp.c
  119. print-cdp.c
  120. print-cfm.c
  121. print-chdlc.c
  122. print-cip.c
  123. print-cnfp.c
  124. print-dccp.c
  125. print-decnet.c
  126. print-dhcp6.c
  127. print-domain.c
  128. print-dtp.c
  129. print-dvmrp.c
  130. print-eap.c
  131. print-egp.c
  132. print-eigrp.c
  133. print-enc.c
  134. print-esp.c
  135. print-ether.c
  136. print-fddi.c
  137. print-forces.c
  138. print-fr.c
  139. print-frag6.c
  140. print-gre.c
  141. print-hsrp.c
  142. print-icmp.c
  143. print-icmp6.c
  144. print-igmp.c
  145. print-igrp.c
  146. print-ip.c
  147. print-ip6.c
  148. print-ip6opts.c
  149. print-ipcomp.c
  150. print-ipfc.c
  151. print-ipnet.c
  152. print-ipx.c
  153. print-isakmp.c
  154. print-isoclns.c
  155. print-juniper.c
  156. print-krb.c
  157. print-l2tp.c
  158. print-lane.c
  159. print-ldp.c
  160. print-llc.c
  161. print-lldp.c
  162. print-lmp.c
  163. print-lspping.c
  164. print-lwapp.c
  165. print-lwres.c
  166. print-mobile.c
  167. print-mobility.c
  168. print-mpcp.c
  169. print-mpls.c
  170. print-msdp.c
  171. print-netbios.c
  172. print-nfs.c
  173. print-ntp.c
  174. print-null.c
  175. print-olsr.c
  176. print-ospf.c
  177. print-ospf6.c
  178. print-pflog.c
  179. print-pgm.c
  180. print-pim.c
  181. print-ppi.c
  182. print-ppp.c
  183. print-pppoe.c
  184. print-pptp.c
  185. print-radius.c
  186. print-raw.c
  187. print-rip.c
  188. print-ripng.c
  189. print-rpki-rtr.c
  190. print-rrcp.c
  191. print-rsvp.c
  192. print-rt6.c
  193. print-rx.c
  194. print-sctp.c
  195. print-sflow.c
  196. print-sip.c
  197. print-sl.c
  198. print-sll.c
  199. print-slow.c
  200. print-smb.c
  201. print-snmp.c
  202. print-stp.c
  203. print-sunatm.c
  204. print-sunrpc.c
  205. print-symantec.c
  206. print-syslog.c
  207. print-tcp.c
  208. print-telnet.c
  209. print-tftp.c
  210. print-timed.c
  211. print-tipc.c
  212. print-token.c
  213. print-udld.c
  214. print-udp.c
  215. print-usb.c
  216. print-vjc.c
  217. print-vqp.c
  218. print-vrrp.c
  219. print-vtp.c
  220. print-wb.c
  221. print-zephyr.c
  222. README
  223. Readme.Win32
  224. route6d.h
  225. rpc_auth.h
  226. rpc_msg.h
  227. rx.h
  228. sctpConstants.h
  229. sctpHeader.h
  230. send-ack.awk
  231. setsignal.c
  232. setsignal.h
  233. signature.c
  234. signature.h
  235. slcompress.h
  236. slip.h
  237. sll.h
  238. smb.h
  239. smbutil.c
  240. stime.awk
  241. strcasecmp.c
  242. tcp.h
  243. tcpdump-stdinc.h
  244. tcpdump.1.in
  245. tcpdump.c
  246. telnet.h
  247. tftp.h
  248. timed.h
  249. TODO
  250. token.h
  251. udp.h
  252. util.c
  253. VERSION
  254. vfprintf.c