* path.cc (path_conv::check): Use full path name for determining attributes
when /cygdrive/x/foo.
This commit is contained in:
parent
15a1d3f2fc
commit
397f94082d
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-07 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* path.cc (path_conv::check): Use full path name for determining
|
||||||
|
attributes when /cygdrive/x/foo.
|
||||||
|
|
||||||
2001-12-06 Christopher Faylor <cgf@redhat.com>
|
2001-12-06 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* path.cc (path_conv::check): Reset FH_CYGDRIVE if iterating through
|
* path.cc (path_conv::check): Reset FH_CYGDRIVE if iterating through
|
||||||
|
@ -481,10 +481,13 @@ path_conv::check (const char *src, unsigned opt,
|
|||||||
|
|
||||||
if (devn == FH_CYGDRIVE)
|
if (devn == FH_CYGDRIVE)
|
||||||
{
|
{
|
||||||
if (component)
|
if (!component)
|
||||||
devn = FH_BAD;
|
fileattr = FILE_ATTRIBUTE_DIRECTORY;
|
||||||
fileattr = !unit ? FILE_ATTRIBUTE_DIRECTORY
|
else
|
||||||
: GetFileAttributes (full_path);
|
{
|
||||||
|
devn = FH_BAD;
|
||||||
|
fileattr = GetFileAttributes (this->path);
|
||||||
|
}
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
/* devn should not be a device. If it is, then stop parsing now. */
|
/* devn should not be a device. If it is, then stop parsing now. */
|
||||||
@ -519,7 +522,7 @@ path_conv::check (const char *src, unsigned opt,
|
|||||||
|
|
||||||
if ((opt & PC_SYM_IGNORE) && pcheck_case == PCHECK_RELAXED)
|
if ((opt & PC_SYM_IGNORE) && pcheck_case == PCHECK_RELAXED)
|
||||||
{
|
{
|
||||||
fileattr = GetFileAttributes (full_path);
|
fileattr = GetFileAttributes (this->path);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user