summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 9299c0159..bebb4027d 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -525,13 +525,11 @@ path_conv::check (const char *src, unsigned opt,
int file_type = fh->exists (path_copy);
switch (file_type)
{
- case 0:
- error = ENOENT;
- break;
case 1:
case 2:
fileattr = FILE_ATTRIBUTE_DIRECTORY;
break;
+ default:
case -1:
fileattr = 0;
}