NAME_MAX is the length of the thing between / / in a path *without*
authorflorian <florian@openbsd.org>
Wed, 7 Feb 2018 03:28:05 +0000 (03:28 +0000)
committerflorian <florian@openbsd.org>
Wed, 7 Feb 2018 03:28:05 +0000 (03:28 +0000)
commit8f5bf38c009210a0ec40b0ed49e52a3ae4fd3dfa
treedc52309d635ee1e0fb8e1c835cc08f1d6a59b5f9
parenta1050595b2b8caba84496f5d3552c7e5fa79f0a0
NAME_MAX is the length of the thing between / / in a path *without*
the terminating NUL.
Do not use it for a "small string" or a "probably short path". Replace
it with new defines or PATH_MAX.
It also makes the life easier for people auditing the tree for real
usage of NAME_MAX.
OK deraadt, benno
usr.sbin/httpd/httpd.h
usr.sbin/httpd/logger.c