Re: [PATCH 0/3] tools/nolibc: verify that a directory is opened
From: Willy Tarreau
Date: Mon Aug 31 2026 - 20:07:10 EST
Hi Thomas,
On Mon, Aug 31, 2026 at 06:04:58PM +0200, Thomas Weißschuh wrote:
> If a non-directory is opened, ENODIR should be returned from
> opendir()/fdopendir() right away and not only during readdir_r().
>
> Validate the type of opened file during open.
Great points, I agree this is much cleaner this way!
> Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
For the whole series:
Reviewed-by: Willy Tarreau <w@xxxxxx>
Thanks!
Willy