mirror of
git://sourceware.org/git/glibc.git
synced 2026-09-08 23:58:31 +08:00
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:
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user