* path.cc (path_conv::check): Return ENOTDIR when leading device and trailing
component.
This commit is contained in:
@ -474,6 +474,11 @@ path_conv::check (const char *src, unsigned opt,
|
||||
/* devn should not be a device. If it is, then stop parsing now. */
|
||||
if (devn != FH_BAD)
|
||||
{
|
||||
if (component)
|
||||
{
|
||||
error = ENOTDIR;
|
||||
return;
|
||||
}
|
||||
fileattr = 0;
|
||||
goto out; /* Found a device. Stop parsing. */
|
||||
}
|
||||
|
Reference in New Issue
Block a user