summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2018-09-12 18:27:06 +0200
committerThomas Haller <thaller@redhat.com>2018-09-14 14:56:09 +0200
commit63639f338fcf5380e0606ea32aefce1273497164 (patch)
treea8e26d4f297b47dd5f5f283b410bd55829096b72 /contrib
parentd1fecaa2d372c6907cafc4ee4884c01ad49b4184 (diff)
downloadNetworkManager-63639f338fcf5380e0606ea32aefce1273497164.tar.gz
contrib/rpm: fix mode of ghost ifup/ifdown files
Set the execution bit on /usr/sbin/{ifup,ifdown} ghost files to match the mode of same files installed by initscripts. Otherwise, they will appear as changed according to rpm verify: .M....... g /usr/sbin/ifdown .M....... g /usr/sbin/ifup when the alternatives mechanism is not in place. # ll /usr/sbin/if{up,down} -rwxr-xr-x. 1 root root 1651 Aug 24 06:23 /usr/sbin/ifdown -rwxr-xr-x. 1 root root 5010 Aug 24 06:23 /usr/sbin/ifup https://bugzilla.redhat.com/show_bug.cgi?id=1626517 (cherry picked from commit d8a972c575c44b39dd170ab58d6a8937f7893d3f)
Diffstat (limited to 'contrib')
-rw-r--r--contrib/fedora/rpm/NetworkManager.spec4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec
index 1285977603..753ff08fc2 100644
--- a/contrib/fedora/rpm/NetworkManager.spec
+++ b/contrib/fedora/rpm/NetworkManager.spec
@@ -681,9 +681,9 @@ fi
%config(noreplace) %{_sysconfdir}/%{name}/NetworkManager.conf
%{_bindir}/nm-online
%{_libexecdir}/nm-ifup
-%ghost %{_sbindir}/ifup
+%ghost %attr(755, root, root) %{_sbindir}/ifup
%{_libexecdir}/nm-ifdown
-%ghost %{_sbindir}/ifdown
+%ghost %attr(755, root, root) %{_sbindir}/ifdown
%{_libexecdir}/nm-dhcp-helper
%{_libexecdir}/nm-dispatcher
%{_libexecdir}/nm-iface-helper