HomeClusterLabs Projects

Refactor: libstonithd: Don't use FILENAME_MAX for array size

Description

Refactor: libstonithd: Don't use FILENAME_MAX for array size

The glibc manual warns against this and notes that glibc doesn't enforce
PATH_MAX:
https://www.gnu.org/software/libc/manual/html_node/Limits-for-Files.html

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Feb 28 2025, 7:40 PM
Parents
rP5e33a906aa74: Refactor: libstonithd: Use scandir filter in stonith__list_rhcs_agents()
Branches
Unknown
Tags
Unknown