diff options
author | Andreas Schwab | 2019-03-05 17:45:05 +0100 |
---|---|---|
committer | Laurent Vivier | 2019-03-07 10:57:29 +0100 |
commit | ba584f1de30e58b0d93cd81bd437271b894eefbf (patch) | |
tree | 0acddcc77db3ff6d4ded9942616c5a3969003f07 /default-configs/sparc-bsd-user.mak | |
parent | Fix breakpoint support in Nios II user-mode emulation. (diff) | |
download | qemu-ba584f1de30e58b0d93cd81bd437271b894eefbf.tar.gz qemu-ba584f1de30e58b0d93cd81bd437271b894eefbf.tar.xz 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 'default-configs/sparc-bsd-user.mak')
0 files changed, 0 insertions, 0 deletions