]> sourceware.org Git - newlib-cygwin.git/commitdiff
* path.cc (path_conv::check): Return with ENOTDIR if component is a
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 14 Jun 2010 21:16:41 +0000 (21:16 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 14 Jun 2010 21:16:41 +0000 (21:16 +0000)
device.

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

index 3c7e8d1dbec77f9bdf7f847d69b993811ed29258..04f36a4fa6f62a701270ed496a7a1cb3f007b8e9 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-14  Corinna Vinschen  <corinna@vinschen.de>
+
+       * path.cc (path_conv::check): Return with ENOTDIR if component is a
+       device.
+
 2010-06-14  Corinna Vinschen  <corinna@vinschen.de>
 
        * dlfcn.cc (get_full_path_of_dll): Revert patch from 2010-04-29.
index d5d103d9ff96fd0652f92005a268e775b3be681a..8ea7e97f1e68b6ef7781afe45a146b809cf0f041 100644 (file)
@@ -829,6 +829,11 @@ is_virtual_symlink:
 
          if (sym.isdevice)
            {
+             if (component)
+               {
+                 error = ENOTDIR;
+                 return;
+               }
              dev.parse (sym.major, sym.minor);
              dev.setfs (1);
              dev.mode = sym.mode;
This page took 0.034741 seconds and 5 git commands to generate.