2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-21 16:39:30 +00:00

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>
This commit is contained in:
Vinícius Ferrão
2026-07-21 17:45:31 -03:00
parent cf44f51463
commit b9f4cff645
+1
View File
@@ -177,6 +177,7 @@ cd $RPM_BUILD_ROOT
%ifos linux
tar zxf %{SOURCE8}
chmod 644 etc/logrotate.d/xcat
%endif
cd -