]> sourceware.org Git - newlib-cygwin.git/commitdiff
* path.cc (path_conv::check): Use full path name for determining attributes
authorChristopher Faylor <me@cgf.cx>
Sat, 8 Dec 2001 01:27:10 +0000 (01:27 +0000)
committerChristopher Faylor <me@cgf.cx>
Sat, 8 Dec 2001 01:27:10 +0000 (01:27 +0000)
when /cygdrive/x/foo.

winsup/cygwin/ChangeLog
winsup/cygwin/path.cc

index cd25e8e4e3a5663a4815df41cabe2dbbd2ead29c..17f63c9a4e1c1ac84ada797cf2689b66254dcf25 100644 (file)
@@ -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>
 
        * path.cc (path_conv::check): Reset FH_CYGDRIVE if iterating through
index 01c3270f62352aa85ef265c6ef33f32a54431b31..aa0ec5454be7990afd6efcd064eebc44cba972af 100644 (file)
@@ -481,10 +481,13 @@ path_conv::check (const char *src, unsigned opt,
 
          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. */
@@ -519,7 +522,7 @@ path_conv::check (const char *src, unsigned opt,
 
          if ((opt & PC_SYM_IGNORE) && pcheck_case == PCHECK_RELAXED)
            {
-             fileattr = GetFileAttributes (full_path);
+             fileattr = GetFileAttributes (this->path);
              goto out;
            }
 
This page took 0.041109 seconds and 5 git commands to generate.