* fhandler_floppy.cc (fhandler_dev_floppy::lseek): Fix test for
valid file position at EOM.
This commit is contained in:
parent
383840a908
commit
46bcbf8ce0
|
@ -1,3 +1,8 @@
|
||||||
|
2005-12-07 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler_floppy.cc (fhandler_dev_floppy::lseek): Fix test for
|
||||||
|
valid file position at EOM.
|
||||||
|
|
||||||
2005-12-07 Christopher Faylor <cgf@timesys.com>
|
2005-12-07 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* include/cygwin/stdlib.h: Guard compilation of *unsetenv* in newlib.
|
* include/cygwin/stdlib.h: Guard compilation of *unsetenv* in newlib.
|
||||||
|
|
|
@ -380,7 +380,7 @@ fhandler_dev_floppy::lseek (_off64_t offset, int whence)
|
||||||
whence = SEEK_SET;
|
whence = SEEK_SET;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (whence != SEEK_SET || lloffset < 0 || lloffset >= drive_size)
|
if (whence != SEEK_SET || lloffset < 0 || lloffset > drive_size)
|
||||||
{
|
{
|
||||||
set_errno (EINVAL);
|
set_errno (EINVAL);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue