HomeClusterLabs Projects

Refactor: libcrmcommon: New pcmk__xml_write_temp_file()

Description

Refactor: libcrmcommon: New pcmk__xml_write_temp_file()

To replace save_xml_to_file(). Note that the new function
unconditionally prefixes the file name with a temp dir, while the old
function did so only if the filename was NULL. This is the reason why
the call to pcmkget_tmpdir() is dropped from pcmkdigest_xml().

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

Details

Provenance
nrwahl2Authored on Mar 20 2025, 8:54 PM
Parents
rPb53d7a4b59ec: Merge pull request #3939 from nrwahl2/nrwahl2-refactors
Branches
Unknown
Tags
Unknown