hurd: Make __file_name_lookup_at apply upmask for O_TMPFILE (BZ 34493)

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.
This commit is contained in:
Samuel Thibault
2026-09-02 02:14:24 +02:00
parent 3c8d50abeb
commit e1643c8df3
+1 -1
View File
@@ -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)
{