* fhandler_floppy.cc (fhandler_dev_floppy::raw_read): Don't set
eom_detected when EOF is detected, thus returning 0 instead of setting errno to ENOSPC.
This commit is contained in:
parent
a15b3bdef7
commit
36f17b4b40
winsup/cygwin
|
@ -1,3 +1,9 @@
|
||||||
|
2008-08-09 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler_floppy.cc (fhandler_dev_floppy::raw_read): Don't set
|
||||||
|
eom_detected when EOF is detected, thus returning 0 instead of
|
||||||
|
setting errno to ENOSPC.
|
||||||
|
|
||||||
2008-08-07 Corinna Vinschen <corinna@vinschen.de>
|
2008-08-07 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler.cc (fhandler_base::open): Use Samba workaround generally
|
* fhandler.cc (fhandler_base::open): Use Samba workaround generally
|
||||||
|
|
|
@ -296,10 +296,7 @@ fhandler_dev_floppy::raw_read (void *ptr, size_t& ulen)
|
||||||
if (current_position + bytes_to_read >= drive_size)
|
if (current_position + bytes_to_read >= drive_size)
|
||||||
bytes_to_read = drive_size - current_position;
|
bytes_to_read = drive_size - current_position;
|
||||||
if (!bytes_to_read)
|
if (!bytes_to_read)
|
||||||
{
|
break;
|
||||||
eom_detected (true);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
debug_printf ("read %d bytes %s", bytes_to_read,
|
debug_printf ("read %d bytes %s", bytes_to_read,
|
||||||
len < devbufsiz ? "into buffer" : "directly");
|
len < devbufsiz ? "into buffer" : "directly");
|
||||||
|
|
Loading…
Reference in New Issue