maint.mk: add syntax-check to avoid char[PATH_MAX]
authorEric Blake <eblake@redhat.com>
Wed, 22 Jun 2011 21:02:24 +0000 (15:02 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 22 Jun 2011 21:08:26 +0000 (15:08 -0600)
commitff3ad37f89f524e388101930e8bb3aaa1784ddaa
tree5d46ce9a75d3029adb127c452aee9688cf2b54db
parentdffc41f946b434d75be1289dbbc0509e9e843280
maint.mk: add syntax-check to avoid char[PATH_MAX]

POSIX allows PATH_MAX to be undefined.  And even if you use the
gnulib pathmax module, where "pathmax.h" guarantees a definition,
the definition might not be constant or might be so large as to
be wasteful or cause stack overflows.  PATH_MAX should only be
used as a limit or hueristic, not an array size.

* top/maint.mk (sc_prohibit_path_max_array): New rule.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
top/maint.mk