* fhandler_random.cc (fhandler_dev_random::lseek): Allow negative
dummy file positions as on Linux.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user