From 00950b2a56361cb71fb4bf3070667ae4bd593e5b Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Wed, 26 Mar 2008 20:28:54 +0000 Subject: Fix Bug 2871 Internal errors reported with traceroute - used the host command to check if the host exists, if yes only then traceroute to it --- templates/traceroute/node.tag/node.def | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'templates/traceroute') diff --git a/templates/traceroute/node.tag/node.def b/templates/traceroute/node.tag/node.def index 87d9c32..f183741 100644 --- a/templates/traceroute/node.tag/node.def +++ b/templates/traceroute/node.tag/node.def @@ -5,4 +5,9 @@ allowed: vyatta-allowed-hosts -run: /usr/sbin/traceroute $2 +run: if /usr/bin/host $2 &>/dev/null + then + /usr/bin/traceroute $2 + else + echo Cannot identify $2 + fi -- cgit v1.2.3