diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2026-08-31 18:05:01 +0200 |
|---|---|---|
| committer | Thomas Weißschuh <linux@weissschuh.net> | 2026-08-31 22:51:17 +0200 |
| commit | 6ef847683e7d294a4187a7253924b8f0d8911416 (patch) | |
| tree | b5ba220338dacc531c0ac4fb3e96bbda719748df /scripts/Makefile.thinlto | |
| parent | 6a6c14d2664e441f016b3b5f0d0b77d4aca2f54c (diff) | |
| download | linux-next-6ef847683e7d294a4187a7253924b8f0d8911416.tar.gz linux-next-6ef847683e7d294a4187a7253924b8f0d8911416.zip | |
tools/nolibc: validate directory with O_DIRECTORY in opendir()
fdopendir() requires a call to fstat() to determine if the opened file
is a directory. Currently opendir() inherits this extra syscall.
Switch to O_DIRECTORY and remove the call to fdopendir() in opendir()
to make the directory type check cheaper.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260831-nolibc-fdopendir-enotdir-v1-3-8cf0e79c4e6f@weissschuh.net
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
