+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>
* path.cc (path_conv::check): Reset FH_CYGDRIVE if iterating through
if (devn == FH_CYGDRIVE)
{
- if (component)
- devn = FH_BAD;
- fileattr = !unit ? FILE_ATTRIBUTE_DIRECTORY
- : GetFileAttributes (full_path);
+ if (!component)
+ fileattr = FILE_ATTRIBUTE_DIRECTORY;
+ else
+ {
+ devn = FH_BAD;
+ fileattr = GetFileAttributes (this->path);
+ }
goto out;
}
/* devn should not be a device. If it is, then stop parsing now. */
if ((opt & PC_SYM_IGNORE) && pcheck_case == PCHECK_RELAXED)
{
- fileattr = GetFileAttributes (full_path);
+ fileattr = GetFileAttributes (this->path);
goto out;
}