HomeClusterLabs Projects

Fix: libcib: properly handle temporary file

Description

Fix: libcib: properly handle temporary file

Before, fchown() could be attempted on a negative file descriptor,
crm_perror() could be called after the relevant errno had been lost,
and a temporary file descriptor was never explicitly closed.

Details

Provenance
kgaillotAuthored on Sep 16 2015, 6:46 PM
Parents
rP25f18550f0a8: Fix: libcrmcommon: better validation of environment variable value
Branches
Unknown
Tags
Unknown

Event Timeline