HomeClusterLabs Projects

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

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

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
rPff4d1bc0b6ee: Refactor: libstonithd: Use scandir filter in stonith__list_rhcs_agents()
Branches
Unknown
Tags
Unknown

Event Timeline