diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-04-19 19:02:05 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-04-20 23:05:54 +0200 |
commit | 88cc282a9a694d3c4f3636d6d518f9f0dac76b73 (patch) | |
tree | dfad1c3ab1a45251ab65acc1a90e394790416729 /sysdeps/mach | |
parent | b630be0922dbaaa50eb174a7740f0d3fb88602da (diff) | |
download | glibc-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.c | 4 |
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]; |