* fhandler_nodevice.cc (fhandler_nodevice::open): Assume that errno has already

been set if pc.error is nonzero.
This commit is contained in:
Christopher Faylor
2004-03-27 18:01:04 +00:00
parent 82b78005eb
commit f19da5f77d
2 changed files with 7 additions and 1 deletions

View File

@ -31,7 +31,8 @@ details. */
int
fhandler_nodevice::open (int, mode_t)
{
set_errno (ENXIO);
if (!pc.error)
set_errno (ENXIO);
return 0;
}