]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Make virsh -d check its input
authorDaniel Veillard <veillard@redhat.com>
Mon, 2 Aug 2010 19:20:26 +0000 (21:20 +0200)
committerDaniel Veillard <veillard@redhat.com>
Mon, 2 Aug 2010 19:20:26 +0000 (21:20 +0200)
commitb259bab8e737349b0d2eb4259ced2484dcd4bee9
tree61c26122e4d75cb8a5428ed7db3ac1ad8bb8b1a2
parentfd5b15ff1a2ec37e75609c091522ae1e2c74c811
Make virsh -d check its input

it was using atoi direct without checking leading to confusion
in case of flag error for example with -c

* tools/virsh.c: vshParseArgv() use virStrToLong_i and remove the
  unchecked atoi used to parse teh parameter
tools/virsh.c