* fhandler_disk_file.cc (fhandler_disk_file::opendir): Use iscygdrive
instead of isspecial. * path.h (path_conv::iscygdrive): New method.
This commit is contained in:
parent
d405630e71
commit
b7d7223947
|
@ -1,3 +1,9 @@
|
|||
2006-02-28 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Use iscygdrive
|
||||
instead of isspecial.
|
||||
* path.h (path_conv::iscygdrive): New method.
|
||||
|
||||
2006-02-28 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* exceptions.cc (_cygtls::interrupt_now): Remove "inside cygwin" check
|
||||
|
|
|
@ -1429,7 +1429,7 @@ fhandler_disk_file::opendir ()
|
|||
set_errno (ENOMEM);
|
||||
goto free_dirname;
|
||||
}
|
||||
else if (!pc.isspecial () && fhaccess (R_OK) != 0)
|
||||
else if (!pc.iscygdrive () && fhaccess (R_OK) != 0)
|
||||
goto free_dirent;
|
||||
else
|
||||
{
|
||||
|
@ -1461,7 +1461,7 @@ fhandler_disk_file::opendir ()
|
|||
if (wincap.is_winnt ())
|
||||
{
|
||||
d_cachepos (dir) = 0;
|
||||
if (!pc.isspecial ())
|
||||
if (!pc.iscygdrive ())
|
||||
{
|
||||
OBJECT_ATTRIBUTES attr;
|
||||
WCHAR wpath[CYG_MAX_PATH + 10];
|
||||
|
|
|
@ -153,6 +153,7 @@ class path_conv
|
|||
int isdevice () const {return dev.devn && dev.devn != FH_FS && dev.devn != FH_FIFO;}
|
||||
int isfifo () const {return dev == FH_FIFO;}
|
||||
int isspecial () const {return dev.devn && dev.devn != FH_FS;}
|
||||
int iscygdrive () const {return dev.devn == FH_CYGDRIVE;}
|
||||
int is_auto_device () const {return isdevice () && !is_fs_special ();}
|
||||
int is_fs_device () const {return isdevice () && is_fs_special ();}
|
||||
int is_fs_special () const {return dev.is_fs_special ();}
|
||||
|
|
Loading…
Reference in New Issue