Page MenuHomeVyOS Platform

op-mode: vtysh_wrapper.sh word-splits and globs its arguments
Open, NormalPublicBUG

Description

vtysh_wrapper.sh passes its arguments unquoted through echo, so whitespace and glob characters are mangled before they reach vtysh. The script also uses declare -a, which is bash-only and not valid in a /bin/sh script.

Fix: quote "$*" and drop the unused declare.

Details

Version
rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav triaged this task as Normal priority.Mon, Nov 30, 3:51 PM
Viacheslav changed the subtype of this task from "Task" to "Bug".