On Tue, 28 Jun 2016 10:20:43 -0700, patrick keshishian wrote: > Since POSIX was mentioned, "" is not a valid filename[1]. So > it isn't the case of a file does not exist (ENOENT), it is a case > of an invalid filename (EINVAL?).
I don't think it really matters. Furthermore, callers of fts(3) are more likely to be expecting ENOENT for non-existent files. I dropped the zero-length check in what I committed so we'll just get the error return by fstatat(2), which is ENOENT. - todd
