From b9f4cff6457d0b83181bc5ee3b8c10b9e054021b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Tue, 21 Jul 2026 17:45:31 -0300 Subject: [PATCH] fix(packaging): install the xcat logrotate config with sane permissions The etc.tar.gz payload is unpacked into the buildroot and the resulting etc/logrotate.d/xcat inherits whatever mode the build umask produced. logrotate silently skips (and warns about) config files that are group- or world-writable, so a loose umask can disable xCAT log rotation entirely. chmod the file to 644 after extraction so the shipped config is always honored. Recovered from the unmerged lenovobuild branch (original cb8d671d). Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com> --- xCAT/xCAT.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index 0ccc8a945..3797ecc4b 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -177,6 +177,7 @@ cd $RPM_BUILD_ROOT %ifos linux tar zxf %{SOURCE8} +chmod 644 etc/logrotate.d/xcat %endif cd -