* path.cc (path_conv::check): Return with ENOTDIR if component is a
device.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user