mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 15:00:07 +00:00
cab1e71f01
Recent rework of virshtest uncovered a subtle bug that was dormant in now vsh but before that even in monolithic virsh. In vsh.c there's this vshReadlineInit() function that's supposed to initialize readline library, i.e. set those global rl_* pointers. But it also initializes history library. Then, when virsh/virt-admin quits, vshReadlineDeinit() is called which writes history into a file (ensuring the parent directory exists). So far no problem. Problem arises when cmdComplete() is called (from a bash completer, for instance). It does not guard call to vshReadlineInit() with check for interactive shell (and it should not), but it sets ctl->historyfile which signals to vshReadlineDeinit() the history should be written. Now, no real history is written, because nothing was entered on the stdin, but the parent directory is created nevertheless. With recent movement in virshtest.c this means some test cases might create virsh history file which breaks our promise of not touching user's data in test suite. Resolves: https://bugs.gentoo.org/931109 Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> |
||
---|---|---|
.. | ||
bash-completion | ||
nss | ||
wireshark | ||
libvirt_recover_xattrs.sh | ||
libvirt_win_icon_16x16.ico | ||
libvirt_win_icon_32x32.ico | ||
libvirt_win_icon_48x48.ico | ||
libvirt_win_icon_64x64.ico | ||
libvirt-guests.service.in | ||
libvirt-guests.sh.in | ||
meson.build | ||
virsh_win_icon.rc | ||
virsh-backup.c | ||
virsh-backup.h | ||
virsh-checkpoint.c | ||
virsh-checkpoint.h | ||
virsh-completer-checkpoint.c | ||
virsh-completer-checkpoint.h | ||
virsh-completer-domain.c | ||
virsh-completer-domain.h | ||
virsh-completer-host.c | ||
virsh-completer-host.h | ||
virsh-completer-interface.c | ||
virsh-completer-interface.h | ||
virsh-completer-network.c | ||
virsh-completer-network.h | ||
virsh-completer-nodedev.c | ||
virsh-completer-nodedev.h | ||
virsh-completer-nwfilter.c | ||
virsh-completer-nwfilter.h | ||
virsh-completer-pool.c | ||
virsh-completer-pool.h | ||
virsh-completer-secret.c | ||
virsh-completer-secret.h | ||
virsh-completer-snapshot.c | ||
virsh-completer-snapshot.h | ||
virsh-completer-volume.c | ||
virsh-completer-volume.h | ||
virsh-completer.c | ||
virsh-completer.h | ||
virsh-console.c | ||
virsh-console.h | ||
virsh-domain-event.c | ||
virsh-domain-event.h | ||
virsh-domain-monitor.c | ||
virsh-domain-monitor.h | ||
virsh-domain.c | ||
virsh-domain.h | ||
virsh-edit.c | ||
virsh-host.c | ||
virsh-host.h | ||
virsh-interface.c | ||
virsh-interface.h | ||
virsh-network.c | ||
virsh-network.h | ||
virsh-nodedev.c | ||
virsh-nodedev.h | ||
virsh-nwfilter.c | ||
virsh-nwfilter.h | ||
virsh-pool.c | ||
virsh-pool.h | ||
virsh-secret.c | ||
virsh-secret.h | ||
virsh-snapshot.c | ||
virsh-snapshot.h | ||
virsh-util.c | ||
virsh-util.h | ||
virsh-volume.c | ||
virsh-volume.h | ||
virsh.c | ||
virsh.h | ||
virt-admin-completer.c | ||
virt-admin-completer.h | ||
virt-admin.c | ||
virt-admin.h | ||
virt-host-validate-bhyve.c | ||
virt-host-validate-bhyve.h | ||
virt-host-validate-ch.c | ||
virt-host-validate-ch.h | ||
virt-host-validate-common.c | ||
virt-host-validate-common.h | ||
virt-host-validate-lxc.c | ||
virt-host-validate-lxc.h | ||
virt-host-validate-qemu.c | ||
virt-host-validate-qemu.h | ||
virt-host-validate.c | ||
virt-login-shell-helper.c | ||
virt-login-shell.c | ||
virt-login-shell.conf | ||
virt-pki-query-dn.c | ||
virt-pki-validate.in | ||
virt-qemu-qmp-proxy | ||
virt-qemu-sev-validate | ||
virt-sanlock-cleanup.in | ||
virt-xml-validate.in | ||
vsh-table.c | ||
vsh-table.h | ||
vsh.c | ||
vsh.h |