mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +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>
|
||||
|
||||
* 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)
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user