]> git.proxmox.com Git - qemu.git/commit
qemu-img: Error out for excess arguments
authorKevin Wolf <kwolf@redhat.com>
Mon, 5 Aug 2013 08:53:04 +0000 (10:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 6 Aug 2013 08:41:56 +0000 (10:41 +0200)
commitfc11eb26cee7e3621645dd40cd9de944201f590b
tree6068a1a2717cc97e63d07c9ea22be60c97cbae61
parent79761c6681f0d1cc1c027116fcb4382d41ed3ece
qemu-img: Error out for excess arguments

Don't silently ignore excess arguments at the end of the command line,
but error out instead. This can catch typos like 'resize test.img + 1G',
which doesn't increase the image size by 1G as intended, but truncates
the image to 1G. Even for less dangerous commands, the old behaviour is
confusing.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
qemu-img.c