* path.cc (path_conv::check): Fill in fileattr for /dev, defaulting to
directory if /dev doesn't actually exist. (win32_device_name): Don't consider FH_DEV to be a device since it's really a directory which should go through mount processing.
This commit is contained in:
parent
14c4d65ef1
commit
7871cd8c5d
@ -1,3 +1,10 @@
|
|||||||
|
2005-08-24 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* path.cc (path_conv::check): Fill in fileattr for /dev, defaulting to
|
||||||
|
directory if /dev doesn't actually exist.
|
||||||
|
(win32_device_name): Don't consider FH_DEV to be a device since it's
|
||||||
|
really a directory which should go through mount processing.
|
||||||
|
|
||||||
2005-08-24 Christopher Faylor <cgf@timesys.com>
|
2005-08-24 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* cygheap.h (cygheap_types): Add HEAP_COMMUNE.
|
* cygheap.h (cygheap_types): Add HEAP_COMMUNE.
|
||||||
|
@ -641,9 +641,13 @@ path_conv::check (const char *src, unsigned opt,
|
|||||||
}
|
}
|
||||||
else if (dev == FH_DEV)
|
else if (dev == FH_DEV)
|
||||||
{
|
{
|
||||||
fileattr = FILE_ATTRIBUTE_DIRECTORY;
|
|
||||||
dev.devn = FH_FS;
|
dev.devn = FH_FS;
|
||||||
goto out;
|
fileattr = GetFileAttributes (this->path);
|
||||||
|
if (!component && fileattr == INVALID_FILE_ATTRIBUTES)
|
||||||
|
{
|
||||||
|
fileattr = FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_READONLY;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (isvirtual_dev (dev.devn))
|
else if (isvirtual_dev (dev.devn))
|
||||||
{
|
{
|
||||||
@ -1053,7 +1057,7 @@ static bool
|
|||||||
win32_device_name (const char *src_path, char *win32_path, device& dev)
|
win32_device_name (const char *src_path, char *win32_path, device& dev)
|
||||||
{
|
{
|
||||||
dev.parse (src_path);
|
dev.parse (src_path);
|
||||||
if (dev.devn == FH_FS)
|
if (dev == FH_FS || dev == FH_DEV)
|
||||||
return false;
|
return false;
|
||||||
strcpy (win32_path, dev.native);
|
strcpy (win32_path, dev.native);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user