HomeClusterLabs Projects

Refactor: libcib: Check doc in cib_file_perform_op_delegate()

Description

Refactor: libcib: Check doc in cib_file_perform_op_delegate()

For safety, make a copy of output if it's in the same XML doc as the
in-memory CIB, instead of only making a copy if they both point to the
same location. The hope is to reduce the likelihood of tricky libxml2
bugs.

Ref T185

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

Details

Provenance
nrwahl2Authored on Jun 8 2023, 3:58 AM
Parents
rPb973826176f1: Refactor: libcrmcommon: Drop xmlSetTreeDoc() from copy_xml()
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task