diff options
| author | Andreas Schwab <schwab@suse.de> | 2019-03-05 17:45:05 +0100 |
|---|---|---|
| committer | Laurent Vivier <laurent@vivier.eu> | 2019-03-07 10:57:29 +0100 |
| commit | ba584f1de30e58b0d93cd81bd437271b894eefbf (patch) | |
| tree | 0acddcc77db3ff6d4ded9942616c5a3969003f07 /python | |
| parent | 14c8a3a157b437e54fbe097d991dca86ac828a14 (diff) | |
| download | focaccia-qemu-ba584f1de30e58b0d93cd81bd437271b894eefbf.tar.gz focaccia-qemu-ba584f1de30e58b0d93cd81bd437271b894eefbf.zip | |
linux-user: don't short-circuit read with zero length
A zero-length read still needs to do the usual checks, thus it may return errors like EBADF. This makes the read syscall emulation consistent with the pread64 syscall emulation. Signed-off-by: Andreas Schwab <schwab@suse.de> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <mvm5zsxz2we.fsf@suse.de> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions