]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Make dl-sysdep's open () cope with O_IGNORE_CTTY
authorSergey Bugaev <bugaevc@gmail.com>
Wed, 19 Apr 2023 16:02:05 +0000 (19:02 +0300)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 20 Apr 2023 21:05:54 +0000 (23:05 +0200)
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230419160207.65988-6-bugaevc@gmail.com>

sysdeps/mach/hurd/dl-sysdep.c

index 2d595d000691e67422555e89fa88b7fe89ff8a4f..6e167e12d836c9ca4e762f2c16e125fb4b4596fe 100644 (file)
@@ -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];