2000-04-28 Geoff Clare <gwc@unisoft.com>

* io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
	path passed to ftw() or nftw() is an empty string.
	Closes PR libc/1710.
This commit is contained in:
Andreas Jaeger 2000-04-28 16:44:25 +00:00
parent d413445041
commit a7f775a55e

View File

@ -472,7 +472,7 @@ ftw_startup (const char *dir, int is_nftw, void *func, int descriptors,
/* First make sure the parameters are reasonable. */
if (dir[0] == '\0')
{
__set_errno (ENOTDIR);
__set_errno (ENOENT);
return -1;
}