* path.cc (path_conv::check): Return ENOTDIR when leading device and trailing
component.
This commit is contained in:
parent
32fb80db07
commit
cbed6474df
|
@ -1,3 +1,8 @@
|
|||
Thu Oct 4 20:52:42 2001 Christopher Faylor <cgf@cygnus.com>
|
||||
|
||||
* path.cc (path_conv::check): Return ENOTDIR when leading device and
|
||||
trailing component.
|
||||
|
||||
Thu Oct 4 18:49:23 2001 Christopher Faylor <cgf@cygnus.com>
|
||||
|
||||
* syscalls.cc (stat_worker): Make global. Accept path_conv parameter
|
||||
|
|
|
@ -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. */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue