* 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:
parent
6db165c2a5
commit
e00700cd80
|
@ -1,3 +1,9 @@
|
|||
2003-11-24 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2003-11-24 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* configure.in: Avoid using cygserver unless hosting on cygwin.
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -125,6 +125,7 @@ class fhandler_base
|
|||
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;}
|
||||
|
|
Loading…
Reference in New Issue