mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 06:30:05 +00:00
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:
parent
d413445041
commit
a7f775a55e
2
io/ftw.c
2
io/ftw.c
@ -472,7 +472,7 @@ ftw_startup (const char *dir, int is_nftw, void *func, int descriptors,
|
|||||||
/* First make sure the parameters are reasonable. */
|
/* First make sure the parameters are reasonable. */
|
||||||
if (dir[0] == '\0')
|
if (dir[0] == '\0')
|
||||||
{
|
{
|
||||||
__set_errno (ENOTDIR);
|
__set_errno (ENOENT);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user