aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-04-19 19:02:05 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-20 23:05:54 +0200
commit88cc282a9a694d3c4f3636d6d518f9f0dac76b73 (patch)
treedfad1c3ab1a45251ab65acc1a90e394790416729 /sysdeps/mach
parentb630be0922dbaaa50eb174a7740f0d3fb88602da (diff)
downloadglibc-88cc282a9a694d3c4f3636d6d518f9f0dac76b73.zip
glibc-88cc282a9a694d3c4f3636d6d518f9f0dac76b73.tar.gz
glibc-88cc282a9a694d3c4f3636d6d518f9f0dac76b73.tar.bz2
hurd: Make dl-sysdep's open () cope with O_IGNORE_CTTY
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com> Message-Id: <20230419160207.65988-6-bugaevc@gmail.com>
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index 2d595d0..6e167e1 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -289,8 +289,8 @@ open_file (const char *file_name, int flags,
return MACH_PORT_NULL;
}
- assert (!(flags & ~(O_READ | O_EXEC | O_CLOEXEC)));
- flags &= ~O_CLOEXEC;
+ assert (!(flags & ~(O_READ | O_EXEC | O_CLOEXEC | O_IGNORE_CTTY)));
+ flags &= ~(O_CLOEXEC | O_IGNORE_CTTY);
startdir = _dl_hurd_data->portarray[file_name[0] == '/'
? INIT_PORT_CRDIR : INIT_PORT_CWDIR];