HomeClusterLabs Projects

Refactor: libcrmservice: Defunctionize create_world_readable()

Description

Refactor: libcrmservice: Defunctionize create_world_readable()

I think this is clearer. The glibc doc also recommends fchmod() over
umask():
https://www.gnu.org/software/libc/manual/html_node/Setting-Permissions.html

It shouldn't matter in our case. umask() isn't thread-safe, but
Pacemaker is single-threaded. Still, setting the permissions explicitly
seems clearer.

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

Details

Provenance
nrwahl2Authored on Sun, Mar 2, 3:20 AM
Parents
rPa6647c9694ab: Refactor: libcrmservice: Fail systemd rsc start if create override fails
Branches
Unknown
Tags
Unknown