Skip to content
  • Beniamino Galvani's avatar
    contrib/rpm: fix mode of ghost ifup/ifdown files · d8a972c5
    Beniamino Galvani authored
    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
    d8a972c5