]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix updating of openvz config file params
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 17 Nov 2008 09:55:59 +0000 (09:55 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 17 Nov 2008 09:55:59 +0000 (09:55 +0000)
ChangeLog
src/openvz_conf.c

index 61ed1e9be3a9dae27d4ba55974322ef14c7eebf0..f5cc3c9414762fe73e03f70752cbe1e0270c6de2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Nov 17 09:55:00 GMT 2008 Daniel Berrange <berrange@redhat.com>
+
+       * src/openvz_conf.c: Fix updating of config file params
+       (Evgeniy Sokolov)
+
 Fri Nov 14 09:40:00 EST 2008 Cole Robinson <crobinso@redhat.com>
 
        * src/storage_backend_logical.c: Use different separator for lvs
index b179b11efdc2b9e8dd689abed03a01459916d537..70d510427d5150a4d5c1cb10161e7f91ffa763f2 100644 (file)
@@ -484,8 +484,7 @@ openvzWriteConfigParam(int vpsid, const char *param, const char *value)
         if (openvz_readline(fd, line, sizeof(line)) <= 0)
             break;
 
-        if (!STRPREFIX(line, param) &&
-            line[strlen(param)] == '=') {
+        if (!(STRPREFIX(line, param) && line[strlen(param)] == '=')) {
             if (safewrite(temp_fd, line, strlen(line)) !=
                 strlen(line))
                 goto error;