]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Require explicit --domain for domxml-to-native
authorJiri Denemark <jdenemar@redhat.com>
Wed, 26 Sep 2018 07:59:08 +0000 (09:59 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 26 Sep 2018 15:22:38 +0000 (17:22 +0200)
commitb7ccd0757de73344a4b973ede946dad40de846c7
treeb534eb5b25777039578255c8c73aef037e6fdafb
parente94415d5a57849769e6d5238b9a30aec0f50d048
virsh: Require explicit --domain for domxml-to-native

The domxml-to-native virsh command accepts either --xml or --domain
option followed by a file or domain name respectively. The --domain
option is documented as required, which means an argument with no option
is treated as --xml. Commit v4.3.0-127-gd86531daf2 broke this by making
--domain optional and thus an argument with no option was treated as
--domain.

https://bugzilla.redhat.com/show_bug.cgi?id=1633077

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tools/virsh-domain.c
tools/virsh.h