* fhandler_random.cc (fhandler_dev_random::lseek): Allow negative

dummy file positions as on Linux.
This commit is contained in:
Corinna Vinschen 2009-10-23 09:22:14 +00:00
parent 3a2f070f31
commit 959684bf05
2 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2009-10-23 Corinna Vinschen <corinna@vinschen.de>
* fhandler_random.cc (fhandler_dev_random::lseek): Allow negative
dummy file positions as on Linux.
2009-10-20 Corinna Vinschen <corinna@vinschen.de>
* registry.cc (reg_key::get_int): Add alternative implementation

View File

@ -160,11 +160,6 @@ 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;
}