* dtable.cc (build_fh_name): Set error in dummy fhandler when one is noted
during path_conv. * fhandler.h (fhandler_base::set_error): New method.
This commit is contained in:
@@ -294,8 +294,10 @@ build_fh_name (const char *name, HANDLE h, unsigned opt, suffix_info *si)
|
||||
path_conv pc (name, opt | PC_NULLEMPTY | PC_FULL | PC_POSIX, si);
|
||||
if (pc.error)
|
||||
{
|
||||
fhandler_base *fh = cnew (fhandler_nodevice) ();
|
||||
fh->set_error (pc.error);
|
||||
set_errno (pc.error);
|
||||
return cnew (fhandler_nodevice) ();
|
||||
return fh;
|
||||
}
|
||||
|
||||
if (!pc.exists () && h)
|
||||
|
Reference in New Issue
Block a user