From 9e8380166ceb941a2de640b3a027d92f06103fba Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 1 Aug 2023 10:04:54 +0200 Subject: [PATCH] dnsdist: Fix the group of the dnsdist.conf file when installed via RPM I _hope_ the `%attr` directive does the right thing, based on http://ftp.rpm.org/max-rpm/s1-rpm-anywhere-specifying-file-attributes.html I'm using this directive instead of calling `chgrp` in `%post` because I'm told using `chgrp` would make `verify` complain about the ownership later. (cherry picked from commit 32c478585461060b993a414e074daea47de94b80) --- builder-support/specs/dnsdist.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder-support/specs/dnsdist.spec b/builder-support/specs/dnsdist.spec index a60c611815..d1e4e0939a 100644 --- a/builder-support/specs/dnsdist.spec +++ b/builder-support/specs/dnsdist.spec @@ -155,5 +155,5 @@ systemctl daemon-reload ||: %{_bindir}/* %{_mandir}/man1/* %dir %{_sysconfdir}/dnsdist -%config(noreplace) %{_sysconfdir}/%{name}/dnsdist.conf +%attr(-, root, dnsdist) %config(noreplace) %{_sysconfdir}/%{name}/dnsdist.conf %{_unitdir}/dnsdist* -- 2.47.2