summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-23 00:31:31 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-23 01:47:05 +0200
commit6151d3b79a8017b6cd0ceb17508b5f1eadafdbb4 (patch)
treee76f9c02b3d520e8cf4eefc2ccd1a66226bece2c /sysdeps
parent8f59fc79b7382a424bd9a0f89807c5adcd1b60df (diff)
downloadglibc-6151d3b79a8017b6cd0ceb17508b5f1eadafdbb4.tar.gz
glibc-6151d3b79a8017b6cd0ceb17508b5f1eadafdbb4.tar.xz
glibc-6151d3b79a8017b6cd0ceb17508b5f1eadafdbb4.zip
hurd: Fix making ld.so run static binaries with retry
We need O_EXEC for __rtld_execve
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c2
1 files changed, 1 insertions, 1 deletions
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);