Commit 63639f33 authored by Beniamino Galvani's avatar Beniamino Galvani Committed by Thomas Haller

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
(cherry picked from commit d8a972c5)
parent d1fecaa2
......@@ -681,9 +681,9 @@ fi
%config(noreplace) %{_sysconfdir}/%{name}/NetworkManager.conf
%ghost %{_sbindir}/ifup
%ghost %attr(755, root, root) %{_sbindir}/ifup
%ghost %{_sbindir}/ifdown
%ghost %attr(755, root, root) %{_sbindir}/ifdown
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment