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:
authorChristopher Faylor <me@cgf.cx>2012-04-19 21:21:32 +0400
committerChristopher Faylor <me@cgf.cx>2012-04-19 21:21:32 +0400
commit080f275bae53c9a03c889014cdc42b02d7837448 (patch)
tree661a03e4fb2aa660fd58d0b903b770c1920ff507 /winsup/cygwin/path.cc
parent55dcba98dbd120db696fba3dda62a348599a2889 (diff)
* dtable.cc (fh_alloc): Keep fh which was flagged as error if it is for an
on-disk device and we were stating it. * path.cc (path_conv::check): Set PATH_KEPT_HANDLE. * path.h (path_types): Add PATH_KEPT_HANDLE. (path_conv::kept_handle): Implement.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 3524c0cc0..0a2380b9c 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1152,6 +1152,9 @@ out:
if (opt & PC_CTTY)
path_flags |= PATH_CTTY;
+ if (opt & PC_KEEP_HANDLE)
+ path_flags |= PATH_KEPT_HANDLE;
+
if ((opt & PC_POSIX))
{
if (tail < path_end && tail > path_copy + 1)