From f6e3d3d687bdc82e4fa885864b35d9d7aa9ed5ca Mon Sep 17 00:00:00 2001 From: John Southworth Date: Wed, 3 Aug 2011 11:59:21 -0500 Subject: Generate unpriviledged allowed-op at compile time. Add script to allow admin user to regenerate it if needed. Fix ambiguous command message. --- functions/interpreter/vyatta-unpriv | 1 + 1 file changed, 1 insertion(+) (limited to 'functions') diff --git a/functions/interpreter/vyatta-unpriv b/functions/interpreter/vyatta-unpriv index 0b07317..ea1e952 100644 --- a/functions/interpreter/vyatta-unpriv +++ b/functions/interpreter/vyatta-unpriv @@ -13,6 +13,7 @@ vyatta_unpriv_ambiguous () get_prefix_filtered_list $1 op_allowed filtered_cmds _vyatta_op_node_path=${vyatta_op_templates} comps=$(_vyatta_op_help $1 ${filtered_cmds[@]}) + echo -ne "\n Ambiguous command: [$1]\n" echo -e "$comps\n" | sed -e 's/^P/ P/' } -- cgit v1.2.3