* 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

@@ -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;