[hurd, commited] hurd: Make __file_name_lookup_at apply upmask for O_TMPFILE (BZ 34493)
Samuel Thibault <[email protected]>
| Newsgroups | gmane.os.hurd.cvs,gmane.comp.lib.glibc.alpha |
|---|---|
| Message-ID | <[email protected]> |
The file does not actually show up as reachable until getting linkat'ed,
which makes it 000 with the current ext2fs, but better make the filesystem
record proper mode anyway.
---
hurd/lookup-at.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hurd/lookup-at.c b/hurd/lookup-at.c
index dfb0b05060..bf3d08a17c 100644
--- a/hurd/lookup-at.c
+++ b/hurd/lookup-at.c
@@ -102,7 +102,7 @@ __file_name_lookup_at (int fd, int at_flags,
file_t dir = result;
err = __dir_mkfile (dir, orig_flags & ~(O_TMPFILE | O_DIRECTORY),
- mode, &result);
+ mode & ~_hurd_umask, &result);
__mach_port_deallocate (__mach_task_self (), dir);
if (err)
{
--
2.53.0