mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
Fix updating of openvz config file params
This commit is contained in:
parent
00e8a7a491
commit
4f956c040c
@ -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>
|
Fri Nov 14 09:40:00 EST 2008 Cole Robinson <crobinso@redhat.com>
|
||||||
|
|
||||||
* src/storage_backend_logical.c: Use different separator for lvs
|
* src/storage_backend_logical.c: Use different separator for lvs
|
||||||
|
@ -484,8 +484,7 @@ openvzWriteConfigParam(int vpsid, const char *param, const char *value)
|
|||||||
if (openvz_readline(fd, line, sizeof(line)) <= 0)
|
if (openvz_readline(fd, line, sizeof(line)) <= 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (!STRPREFIX(line, param) &&
|
if (!(STRPREFIX(line, param) && line[strlen(param)] == '=')) {
|
||||||
line[strlen(param)] == '=') {
|
|
||||||
if (safewrite(temp_fd, line, strlen(line)) !=
|
if (safewrite(temp_fd, line, strlen(line)) !=
|
||||||
strlen(line))
|
strlen(line))
|
||||||
goto error;
|
goto error;
|
||||||
|
Loading…
Reference in New Issue
Block a user