[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 3/5] hurd: Make dl-sysdep's open () cope with O_IGNORE_CTTY
From: |
Sergey Bugaev |
Subject: |
[RFC PATCH 3/5] hurd: Make dl-sysdep's open () cope with O_IGNORE_CTTY |
Date: |
Tue, 18 Apr 2023 01:58:55 +0300 |
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
---
sysdeps/mach/hurd/dl-sysdep.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index 2d595d00..6e167e12 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];
--
2.39.2
[RFC PATCH 4/5] include/fcntl.h: Define O_IGNORE_CTTY, Sergey Bugaev, 2023/04/17
[RFC PATCH 5/5] Use O_IGNORE_CTTY where appropriate, Sergey Bugaev, 2023/04/17