--- rpms/e-smith-nutUPS/sme9/e-smith-nutUPS-2.4.0.UPS_administrative_privileges.patch 2015/02/03 18:09:37 1.1 +++ rpms/e-smith-nutUPS/sme9/e-smith-nutUPS-2.4.0.UPS_administrative_privileges.patch 2015/02/03 21:15:48 1.2 @@ -14,11 +14,14 @@ diff -Nur e-smith-nutUPS-2.4.0.old8826/r } diff -Nur e-smith-nutUPS-2.4.0.old8826/root/etc/e-smith/templates/etc/hosts.allow/upsd_admin_privileges e-smith-nutUPS-2.4.0.bz8826/root/etc/e-smith/templates/etc/hosts.allow/upsd_admin_privileges --- e-smith-nutUPS-2.4.0.old8826/root/etc/e-smith/templates/etc/hosts.allow/upsd_admin_privileges 1970-01-01 01:00:00.000000000 +0100 -+++ e-smith-nutUPS-2.4.0.bz8826/root/etc/e-smith/templates/etc/hosts.allow/upsd_admin_privileges 2015-02-02 23:14:22.294683885 +0100 -@@ -0,0 +1,4 @@ ++++ e-smith-nutUPS-2.4.0.bz8826/root/etc/e-smith/templates/etc/hosts.allow/upsd_admin_privileges 2015-02-03 22:00:31.228971082 +0100 +@@ -0,0 +1,7 @@ +{ -+$OUT .= qq (#Allow the Admin User of upsd -+upsd : admin op localhost : ALLOW) if ($nut{AdminUser} eq 'enabled'); ++my $upsd = $DB->hosts_allow_spec('nut','upsd'); ++$upsd =~ s|upsd:|upsd: admin op localhost :|; ++ ++$OUT .= qq(#Allow the Admin User of upsd ++$upsd\n) if ($nut{AdminUser} eq 'enabled'); +} diff -Nur e-smith-nutUPS-2.4.0.old8826/root/etc/e-smith/templates/etc/ups/upsd.users/upsd_administrative_privileges e-smith-nutUPS-2.4.0.bz8826/root/etc/e-smith/templates/etc/ups/upsd.users/upsd_administrative_privileges --- e-smith-nutUPS-2.4.0.old8826/root/etc/e-smith/templates/etc/ups/upsd.users/upsd_administrative_privileges 1970-01-01 01:00:00.000000000 +0100