diff options
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 2a5ca4608..787251d72 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -634,11 +634,17 @@ path_conv::check (const char *src, unsigned opt, fileattr = FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_READONLY; else { - dev.devn = FH_FS; fileattr = GetFileAttributes (this->path); + dev.devn = FH_FS; } goto out; } + else if (dev == FH_DEV) + { + fileattr = FILE_ATTRIBUTE_DIRECTORY; + dev.devn = FH_FS; + goto out; + } else if (isvirtual_dev (dev.devn)) { /* FIXME: Calling build_fhandler here is not the right way to handle this. */ |