]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: reject negative values for scaled integer
authorPavel Hrdina <phrdina@redhat.com>
Fri, 22 May 2015 13:56:57 +0000 (15:56 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 25 May 2015 07:08:38 +0000 (09:08 +0200)
commit739ea3ce783e2ffbf6699b82f6020b613fef5f44
treeb4b87cba0e8dd8ebbc8b098166fa106bd3297f46
parente971921a5ea1154d14cece6da2ae346cca0969fd
virsh: reject negative values for scaled integer

Some virsh commands have a size parameter, which is handled as scaled
integer.  We don't have any *feature* that would allow to use '-1' as
maximum size, so it's safe to reject any negative values for those
commands.

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

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
tools/virsh.c