• J
    vsh: Pass correct values for command line completion · 06a7b1ff
    John Ferlan 提交于
    Commit id 'dcfdf341' passes 'opts_need_arg' and 'opts_seen' to
    vshCmddefGetData, but that seems to be incorrect as those values
    are not initialized properly (something at least one compiler found).
    Instead the static 'const_opts_need_arg' and 'const_opts_seen' values
    should be passed.
    
    By passing unitialized values leads to not finding possible options
    for simpler commands (domfsfreeze for example), where if you're in
    a virsh shell using command line completion - you'll get a list of
    files in your current directory instead of two options --domain and
    --mountpoint (as would happen with this patch applied.
    06a7b1ff
vsh.c 87.9 KB