* path.cc (path_conv::check): Return with ENOTDIR if component is a

device.
This commit is contained in:
Corinna Vinschen 2010-06-14 21:16:41 +00:00
parent b775136014
commit d955b6cfd8
2 changed files with 10 additions and 0 deletions

View 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> 2010-06-14 Corinna Vinschen <corinna@vinschen.de>
* dlfcn.cc (get_full_path_of_dll): Revert patch from 2010-04-29. * dlfcn.cc (get_full_path_of_dll): Revert patch from 2010-04-29.

View File

@ -829,6 +829,11 @@ is_virtual_symlink:
if (sym.isdevice) if (sym.isdevice)
{ {
if (component)
{
error = ENOTDIR;
return;
}
dev.parse (sym.major, sym.minor); dev.parse (sym.major, sym.minor);
dev.setfs (1); dev.setfs (1);
dev.mode = sym.mode; dev.mode = sym.mode;