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.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 45583fb76..7d05445f9 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1118,6 +1118,12 @@ out:
if (saw_symlinks)
set_has_symlinks ();
+ if (opt & PC_OPEN)
+ path_flags |= PATH_OPEN;
+
+ if (opt & PC_CTTY)
+ path_flags |= PATH_CTTY;
+
if ((opt & PC_POSIX))
{
if (tail < path_end && tail > path_copy + 1)