stat: be robust to PATH_MAX definition
authorEric Blake <eblake@redhat.com>
Mon, 20 Jun 2011 22:55:24 +0000 (16:55 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 22 Jun 2011 20:55:57 +0000 (14:55 -0600)
commitdffc41f946b434d75be1289dbbc0509e9e843280
tree0b31890efafc53273906aba7a1e573f2b67c75c4
parentdf1c2344f29dbca57d9e560aaa89aa2c20cdda7f
stat: be robust to PATH_MAX definition

Make this stack-allocation of PATH_MAX bytes more robust.

* lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
* modules/stat (Depends-on): Add verify.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/stat.c
modules/stat