linux/tools/lib/subcmd
Ian Rogers 478272d1cd tools subcmd: Tighten the filename size in check_if_command_finished
FILENAME_MAX is often PATH_MAX (4kb), far more than needed for the
/proc path. Make the buffer size sufficient for the maximum integer
plus "/proc/" and "/status" with a '\0' terminator.

Fixes: 5ce42b5de4 ("tools subcmd: Add non-waitpid check_if_command_finished()")
Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250717150855.1032526-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2025-07-22 18:17:53 -07:00
..
Build
exec-cmd.c libsubcmd: Avoid two path statics, removing 8192 bytes from .bss 2023-05-28 10:25:55 -03:00
exec-cmd.h
help.c perf tools: Fix use-after-free in help_unknown_cmd() 2025-07-02 18:58:50 -07:00
help.h
Makefile tools: Drop nonsensical -O6 2024-09-11 13:08:36 -03:00
pager.c
pager.h
parse-options.c libsubcmd: Silence compiler warning 2024-10-23 14:38:34 -07:00
parse-options.h tools/lib/subcmd: Replace NORETURN usage with __noreturn 2023-05-16 06:31:54 -07:00
run-command.c tools subcmd: Tighten the filename size in check_if_command_finished 2025-07-22 18:17:53 -07:00
run-command.h tools subcmd: Add check_if_command_finished() 2024-04-08 17:43:20 -03:00
sigchain.c
sigchain.h
subcmd-config.c
subcmd-config.h
subcmd-util.h libsubcmd: Move va_end() before exit 2024-11-13 16:27:35 -03:00