during path_conv.
* fhandler.h (fhandler_base::set_error): New method.
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)
public:
void set_name (path_conv &pc);
int error () const {return pc.error;}
+ void set_error (int error) {pc.error = error;}
bool exists () const {return pc.exists ();}
int pc_binmode () const {return pc.binmode ();}
device& dev () {return pc.dev;}