KO Myung-Hun wrote:
* lib/fts.c (fts_build): Do not check dir_fd on OS/2 kLIBC.
I'm afraid this change needs more explanation. If the problem is that dirfd returns -2, the earlier part of fts_build will return when that happens, so that problem cannot be fixed by the patch that you sent.
What actually goes wrong if the change is omitted?