From e1643c8df34ee38eedb48dad108f56c18f895aca Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 2 Sep 2026 02:12:54 +0200 Subject: [PATCH] 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. --- 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) {