* devices.h (FH_CYGDRIVE): Define as DEV_VIRTFS_MAJOR class device.
(DEV_CYGDRIVE_MAJOR): Remove. (iscygdrive_dev): Define. * dtable.cc (fh_alloc): Accommodate above change. * path.cc (path_conv::check): Use iscygdrive_dev to check for cygdrive. * syscalls.cc (fhandler_base::set_ino_and_dev): Drop check for DEV_CYGDRIVE_MAJOR from conditional.
This commit is contained in:
@ -724,7 +724,7 @@ path_conv::check (const char *src, unsigned opt,
|
||||
return;
|
||||
}
|
||||
|
||||
if (dev.get_major () == DEV_CYGDRIVE_MAJOR)
|
||||
if (iscygdrive_dev (dev))
|
||||
{
|
||||
if (!component)
|
||||
fileattr = FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_READONLY;
|
||||
|
Reference in New Issue
Block a user