* fhandler_disk_file.cc (fhandler_disk_file::fchown): Make sure that disk open

is called in case we're passed in a non-existent device.
This commit is contained in:
Christopher Faylor 2005-06-02 01:50:23 +00:00
parent 31d0f220ad
commit 5ac6edefaf
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-06-01 Christopher Faylor <cgf@timesys.com>
* fhandler_disk_file.cc (fhandler_disk_file::fchown): Make sure that
disk open is called in case we're passed in a non-existent device.
2005-06-01 Christopher Faylor <cgf@timesys.com>
* include/machine/stdlib.h: New file.

View File

@ -528,7 +528,7 @@ fhandler_disk_file::fchown (__uid32_t uid, __gid32_t gid)
if (!get_io_handle ())
{
query_open (query_write_control);
if (!(oret = open (O_BINARY, 0)))
if (!(oret = fhandler_disk_file::open (O_BINARY, 0)))
return -1;
}