diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /vendor/rustix/ci/translate-errno.patch | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/rustix/ci/translate-errno.patch')
-rw-r--r-- | vendor/rustix/ci/translate-errno.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/rustix/ci/translate-errno.patch b/vendor/rustix/ci/translate-errno.patch new file mode 100644 index 000000000..6a4152038 --- /dev/null +++ b/vendor/rustix/ci/translate-errno.patch @@ -0,0 +1,28 @@ +From: Dan Gohman <dev@sunfishcode.online> +Subject: [PATCH] Translate errno codes from host to target for `SO_ERROR`. + +This issue is reported upstream [here]. + +[here]: https://gitlab.com/qemu-project/qemu/-/issues/872 + +--- + linux-user/syscall.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/linux-user/syscall.c b/linux-user/syscall.c +index b9b18a7eaf..a8eae3c4ac 100644 +--- a/linux-user/syscall.c ++++ b/linux-user/syscall.c +@@ -2767,6 +2767,9 @@ get_timeout: + if (optname == SO_TYPE) { + val = host_to_target_sock_type(val); + } ++ if (level == SOL_SOCKET && optname == SO_ERROR) { ++ val = host_to_target_errno(val); ++ } + if (len > lv) + len = lv; + if (len == 4) { +-- +2.32.0 + |