Andreas Schwab ba584f1de3 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>
2019-03-07 10:57:29 +01:00
..
2019-01-11 15:46:55 +01:00
2019-02-07 14:11:19 +01:00
2016-01-29 15:07:22 +00:00
2019-01-11 15:46:55 +01:00
2016-01-29 15:07:22 +00:00