]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
openvz: support vzctl 3.1
authorIlja Livenson <ilja.livenson@gmail.com>
Wed, 4 Apr 2012 20:30:43 +0000 (14:30 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 4 Apr 2012 20:32:15 +0000 (14:32 -0600)
https://bugzilla.redhat.com/show_bug.cgi?id=809895

Basically, openvz dropped strict version numbering (3.1 vs 3.1.0),
which caused parsing to fail.

AUTHORS
src/openvz/openvz_conf.c

diff --git a/AUTHORS b/AUTHORS
index 33154400a2321efa07064c7dca4ee9e481b73c3f..2077306c29e07923d60c07f61d4f74f4125a6576 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -228,6 +228,7 @@ Patches have also been contributed by:
   Li Zhang             <zhlcindy@linux.vnet.ibm.com>
   Stef Walter          <stefw@gnome.org>
   Christian Benvenuti  <benve@cisco.com>
+  Ilja Livenson        <ilja.livenson@gmail.com>
 
   [....send patches to get your name here....]
 
index 28f86ff2d9948233aa425ab4f13d37cf5549ae8c..5848ec4edde670e7c81d37cb9808134e66c2e587 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * openvz_conf.c: config functions for managing OpenVZ VEs
  *
- * Copyright (C) 2010-2011 Red Hat, Inc.
+ * Copyright (C) 2010-2012 Red Hat, Inc.
  * Copyright (C) 2006, 2007 Binary Karma
  * Copyright (C) 2006 Shuveb Hussain
  * Copyright (C) 2007 Anoop Joe Cyriac
@@ -99,7 +99,7 @@ openvzExtractVersionInfo(const char *cmdstr, int *retversion)
     if ((tmp = STRSKIP(tmp, "vzctl version ")) == NULL)
         goto cleanup;
 
-    if (virParseVersionString(tmp, &version, false) < 0)
+    if (virParseVersionString(tmp, &version, true) < 0)
         goto cleanup;
 
     if (retversion)