* fhandler_raw.cc (fhandler_dev_raw::raw_read): Set more accurate
errnos instead of EACCES.
(fhandler_dev_raw::raw_write): Ditto.
+2003-08-17 Corinna Vinschen <corinna@vinschen.de>
+
+ * errno.cc (errmap): Map ERROR_INVALID_BLOCK_LENGTH to EIO.
+ * fhandler_raw.cc (fhandler_dev_raw::raw_read): Set more accurate
+ errnos instead of EACCES.
+ (fhandler_dev_raw::raw_write): Ditto.
+
2003-08-17 Christopher Faylor <cgf@redhat.com>
* path.cc (special_name): Accommodate all special names with
X (NOACCESS, EFAULT),
X (FILE_INVALID, ENXIO),
X (INVALID_ADDRESS, EOVERFLOW),
+ X (INVALID_BLOCK_LENGTH, EIO),
{ 0, NULL, 0}
};
ret = writebuf ();
if (ret)
{
- set_errno (is_eom (ret) ? ENOSPC : EACCES);
+ if (is_eom (ret))
+ set_errno (ENOSPC);
+ else
+ __seterrno ();
goto err;
}
{
if (!is_eof (ret) && !is_eom (ret))
{
- debug_printf ("return -1, set errno to EACCES");
- set_errno (EACCES);
+ __seterrno ();
goto err;
}
{
if (!is_eof (ret) && !is_eom (ret))
{
- debug_printf ("return -1, set errno to EACCES");
- set_errno (EACCES);
+ __seterrno ();
goto err;
}
if (bytes_read)
has_written = 1;
if (!is_eom (ret))
{
- set_errno (EACCES);
+ __seterrno ();
return -1;
}
eom_detected = 1;