fts_open() requires that the list passed as argument to contain at least
authormillert <millert@openbsd.org>
Tue, 28 Jun 2016 17:21:48 +0000 (17:21 +0000)
committermillert <millert@openbsd.org>
Tue, 28 Jun 2016 17:21:48 +0000 (17:21 +0000)
commit35a15bab90f672da7024f7a288eef35a2f8066e9
treecb227cb4b6d2d20c3595bbc161ddf85893515c7f
parent4faff50f44a51e665f7e708eff244f1d4aad4a6d
fts_open() requires that the list passed as argument to contain at least
one path.  When the list is empty (contain only a NULL pointer), return
EINVAL instead of pretending to succeed, which will cause a NULL pointer
deference in a later fts_read() call.  From FreeBSD.
lib/libc/gen/fts.3
lib/libc/gen/fts.c