summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-07-23 12:59:50 -0700
committerDaniil Baturin <daniil@baturin.org>2019-08-29 15:04:48 +0200
commit84dfd4f9a73e72d055267403065388088e75ce34 (patch)
treed9dac272201a07b035d563c5d7ebe671b36f269e
parent5eeefd4719189c29ce281d58aa1b46e0fe2f6f8d (diff)
downloadvyatta-op-84dfd4f9a73e72d055267403065388088e75ce34.tar.gz
vyatta-op-84dfd4f9a73e72d055267403065388088e75ce34.zip
[ping command] T1450 - ping * flood is not working
-rwxr-xr-xscripts/ping3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/ping b/scripts/ping
index b72ea54..2737383 100755
--- a/scripts/ping
+++ b/scripts/ping
@@ -257,5 +257,6 @@ while (my $arg = shift @$args) {
push @cmdargs, $optarg;
}
}
-exec { $cmd } @cmdargs, $host;
+#exec { $cmd } @cmdargs, $host;
+system("sudo" , @cmdargs, $host)