* 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.
This commit is contained in:
Christopher Faylor
2012-04-21 19:52:11 +00:00
parent 080f275bae
commit 8b4bd08220
4 changed files with 11 additions and 8 deletions

View File

@@ -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;