[hurd,commited] hurd: Fix making ld.so run static binaries with retry

Message ID 20230522234737.3892081-1-samuel.thibault@ens-lyon.org
State Committed
Commit 6151d3b79a8017b6cd0ceb17508b5f1eadafdbb4
Series [hurd,commited] hurd: Fix making ld.so run static binaries with retry |


Context Check Description
dj/TryBot-apply_patch fail Patch failed to apply to master at the time it was sent
dj/TryBot-32bit fail Patch series failed to apply
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_glibc_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_glibc_check--master-arm success Testing passed
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 success Testing passed

Commit Message

Samuel Thibault May 22, 2023, 11:47 p.m. UTC
  We need O_EXEC for __rtld_execve
 sysdeps/mach/hurd/dl-sysdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index 7c484d76eb..6994f8f7b6 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -303,7 +303,7 @@  open_file (const char *file_name, int flags,
   if (!err)
     err = __hurd_file_name_lookup_retry (use_init_port, get_dtable_port,
 					 __dir_lookup, doretry, retryname,
-					 O_RDONLY, 0, port);
+					 flags, 0, port);
   if (!err && stat)
       err = __io_stat (*port, stat);