diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-08-03 11:59:21 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-08-03 11:59:21 -0500 |
commit | f6e3d3d687bdc82e4fa885864b35d9d7aa9ed5ca (patch) | |
tree | f15084d2df351671952e98b5da2bb7d4df74fcb8 /functions/interpreter | |
parent | 5881df96b478d388813557d7280e55e788b5e175 (diff) | |
download | vyatta-op-f6e3d3d687bdc82e4fa885864b35d9d7aa9ed5ca.tar.gz vyatta-op-f6e3d3d687bdc82e4fa885864b35d9d7aa9ed5ca.zip |
Generate unpriviledged allowed-op at compile time. Add script to allow admin user to regenerate it if needed. Fix ambiguous command message.
Diffstat (limited to 'functions/interpreter')
-rw-r--r-- | functions/interpreter/vyatta-unpriv | 1 |
1 files changed, 1 insertions, 0 deletions
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/' } |