* fhandler_random.cc (fhandler_dev_random::lseek): Revert change from

2009-10-23.
This commit is contained in:
Corinna Vinschen 2009-10-30 10:53:54 +00:00
parent 460af5f9c0
commit 53be6f3df6
2 changed files with 10 additions and 0 deletions

View File

@ -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.

View File

@ -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;
}