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-21 23:52:11 +0400
committerChristopher Faylor <me@cgf.cx>2012-04-21 23:52:11 +0400
commit8b4bd0822066fe7282bb4b6486c0f4c44225d493 (patch)
treef0c5ffb8c39290132a9669932d4e374d0947b4e5 /winsup/cygwin/dtable.cc
parent080f275bae53c9a03c889014cdc42b02d7837448 (diff)
* dtable.cc (fh_alloc): Only disallow opening of nonexistent on-disk device.
* path.cc (path_conv::check): Remove PATH_KEPT_HANDLE setting. * path.h (path_types): Remove PATH_KEPT_HANDLE. (path_conv::kept_handle): Delete now-unneeded function.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r--winsup/cygwin/dtable.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index c956ec371..1cd1f6b48 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -607,10 +607,10 @@ fh_alloc (path_conv& pc)
fh = cnew (fhandler_nodevice);
else if (fh->dev () == FH_ERROR)
{
- if (pc.kept_handle () && pc.dev.isfs ())
+ if (!pc.isopen () && pc.dev.isfs ())
fh->dev () = pc.dev; /* Special case: This file actually exists on
- disk and this is a stat() so just return the
- info from pc. */
+ disk and we're not trying to open it so just
+ return the info from pc. */
else
{
delete fh;