mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
* fhandler_random.cc (fhandler_dev_random::lseek): Revert change from
2009-10-23.
This commit is contained in:
parent
460af5f9c0
commit
53be6f3df6
@ -1,3 +1,8 @@
|
||||
2009-10-30 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_random.cc (fhandler_dev_random::lseek): Revert change from
|
||||
2009-10-23.
|
||||
|
||||
2009-10-30 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* smallprint.cc (hex_str): New const string.
|
||||
|
@ -160,6 +160,11 @@ fhandler_dev_random::lseek (_off64_t off, int whence)
|
||||
set_errno (EINVAL);
|
||||
return (_off64_t) -1;
|
||||
}
|
||||
if (new_off < 0)
|
||||
{
|
||||
set_errno (EINVAL);
|
||||
return (_off64_t) -1;
|
||||
}
|
||||
return dummy_offset = new_off;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user