diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2026-08-31 18:05:01 +0200 |
|---|---|---|
| committer | Thomas Weißschuh <linux@weissschuh.net> | 2026-09-14 00:18:54 +0200 |
| commit | f19ae28f1f050b7d6551412a04281955cc4103e5 (patch) | |
| tree | 565866b681b917b1fb20583f3dc9c29d1cdc733a /tools/perf/scripts/python | |
| parent | 9c47af906bc655c8f45aaf1f156656239c2c5073 (diff) | |
| download | linux-next-f19ae28f1f050b7d6551412a04281955cc4103e5.tar.gz linux-next-f19ae28f1f050b7d6551412a04281955cc4103e5.zip | |
tools/nolibc: validate directory with O_DIRECTORY in opendir()
Switch to O_DIRECTORY to validate that the opened file is a directory.
ALso remove the call to fdopendir() in opendir() to avoid a double check
of 'fd'. This will also make it easier to add a similar check for
fdopendir().
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
