Re: [PATCH v2 3/4] tools/nolibc: always pass mode to open syscall
From: Willy Tarreau
Date: Thu May 14 2026 - 11:44:48 EST
Hi Thomas,
On Thu, May 14, 2026 at 02:05:13PM +0200, Thomas Weißschuh wrote:
> When O_TMPFILE is set, the open mode needs to be passed to the kernel as
> per the documentation. Currently this is not done.
> Instead of checking for O_TMPFILE explicitly and making the conditionals
> more complex, just always pass the mode to the kernel. If no value was
> passed the mode will be garbage, but the kernel will ignore it anyways.
>
> Fixes: a7604ba149e7 ("tools/nolibc/sys: make open() take a vararg on the 3rd argument")
> Suggested-by: Willy Tarreau <w@xxxxxx>
> Link: https://lore.kernel.org/lkml/afRfjdovT6pNtwtP@xxxxxx/
> Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
Looks good, thank you for making this one move forward!
Acked-by: Willy Tarreau <w@xxxxxx>
Willy