diff options
| author | Peter Maydell | 2017-12-15 16:18:00 +0100 |
|---|---|---|
| committer | Laurent Vivier | 2018-01-23 14:20:52 +0100 |
| commit | 10fa993aae539fa8d0da1da17169e05f1dfb4f95 (patch) | |
| tree | 7a02d9ede63aac44a06dd385a6237e25c96bf0cd /scripts | |
| parent | linux-user: Don't use CMSG_ALIGN(sizeof struct cmsghdr) (diff) | |
| download | qemu-10fa993aae539fa8d0da1da17169e05f1dfb4f95.tar.gz qemu-10fa993aae539fa8d0da1da17169e05f1dfb4f95.tar.xz qemu-10fa993aae539fa8d0da1da17169e05f1dfb4f95.zip | |
linux-user: Translate flags argument to dup3 syscall
The third argument to dup3() is a flags word which may be
O_CLOEXEC. We weren't translating this flag from target to
host value, which meant that if the target used a different
value from the host (eg sparc guest and x86 host) the dup3()
call would fail EINVAL. Do the correct translation.
Fixes: https://bugs.launchpad.net/qemu/+bug/1704658
Reported-by: Bruno Haible <bruno@clisp.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <1513351080-25917-1-git-send-email-peter.maydell@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
