summaryrefslogtreecommitdiffstats
path: root/bin/drakgw
diff options
context:
space:
mode:
Diffstat (limited to 'bin/drakgw')
-rwxr-xr-xbin/drakgw4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/drakgw b/bin/drakgw
index fd0ee19..f0fd106 100755
--- a/bin/drakgw
+++ b/bin/drakgw
@@ -45,7 +45,9 @@ my $sysconf_network = "/etc/sysconfig/network";
my $masq_file = "$::prefix/etc/shorewall/masq";
my $cups_conf = "$::prefix/etc/cups/cupsd.conf";
-my $in = 'interactive'->vnew('su');
+require_root_capability();
+
+my $in = 'interactive'->vnew;
my $net = {};
network::network::read_net_conf($net);