Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index c6f7c1d27..c3b304ab5 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -2810,6 +2810,13 @@ restart:
|| status == STATUS_NO_MEDIA_IN_DEVICE)
{
set_error (ENOENT);
+ if (ext_tacked_on && !had_ext)
+ {
+ *ext_here = '\0';
+ ext_tacked_on = false;
+ ext_here = NULL;
+ extn = 0;
+ }
goto file_not_symlink;
}
if (status != STATUS_OBJECT_NAME_NOT_FOUND