diff options
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 9187f866dcb..59c0dc3f51b 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -959,6 +959,8 @@ out: } else if (!need_directory || error) /* nothing to do */; + else if (fileattr == INVALID_FILE_ATTRIBUTES) + strcat (path, "\\"); else if (fileattr & FILE_ATTRIBUTE_DIRECTORY) path_flags &= ~PATH_SYMLINK; else |