aboutsummaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-04-28 16:44:25 +0000
committerAndreas Jaeger <aj@suse.de>2000-04-28 16:44:25 +0000
commita7f775a55e79ee3b123fff604e63781c08e4598a (patch)
tree03418fc79f8c18cf0decbcfa7d7e43dc57324cbd /io
parentd413445041e9d3f90c7d660ac0028767a0d0c76e (diff)
downloadglibc-a7f775a55e79ee3b123fff604e63781c08e4598a.zip
glibc-a7f775a55e79ee3b123fff604e63781c08e4598a.tar.gz
glibc-a7f775a55e79ee3b123fff604e63781c08e4598a.tar.bz2
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.
Diffstat (limited to 'io')
-rw-r--r--io/ftw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io/ftw.c b/io/ftw.c
index 3428fcf..e832fbb 100644
--- a/io/ftw.c
+++ b/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. */
if (dir[0] == '\0')
{
- __set_errno (ENOTDIR);
+ __set_errno (ENOENT);
return -1;
}