if (fts == NULL)
{
/* This can fail in three ways: out of memory, invalid bit_flags,
- and one of the FILES is an empty string.
- We could try to decipher that errno==EINVAL means invalid
- bit_flags and errno==ENOENT, but that seems wrong. Ideally
- fts_open would return a proper error indicator. For now,
+ and one or more of the FILES is an empty string. We could try
+ to decipher that errno==EINVAL means invalid bit_flags and
+ errno==ENOENT means there's an empty string, but that seems wrong.
+ Ideally, fts_open would return a proper error indicator. For now,
we'll presume that the bit_flags are valid and just check for
empty strings. */
bool invalid_arg = false;