* fhandler_registry.cc (fhandler_registry::close): Return any error result to

the caller.
* syscalls.cc (_close): Return result of fhandler::close to the caller.
This commit is contained in:
Christopher Faylor 2002-07-26 19:58:00 +00:00
parent 6b6425cb53
commit 6b3c247d07
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2002-07-26 Conrad Scott <conrad.scott@dsl.pipex.com>
* fhandler_registry.cc (fhandler_registry::close): Return any error
result to the caller.
* syscalls.cc (_close): Return result of fhandler::close to the caller.
2002-07-25 Christopher Faylor <cgf@redhat.com>
* security.cc (allow_ntsec): Default to on.

View File

@ -533,7 +533,7 @@ fhandler_registry::close ()
}
if (value_name)
cfree (value_name);
return 0;
return res;
}
bool

View File

@ -578,9 +578,8 @@ _close (int fd)
res = -1;
else
{
cfd->close ();
res = cfd->close ();
cfd.release ();
res = 0;
}
syscall_printf ("%d = close (%d)", res, fd);