diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index 55210e4f17487ebdebd4ee7795f0e6a961aaeffa..ecdd5b7797332c447e4b238deab4a6adaa1bb489 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -1153,7 +1153,7 @@ static int lxcVmStart(virConnectPtr conn, goto cleanup; } - if ((logfd = open(logfile, O_WRONLY | O_TRUNC | O_CREAT, + if ((logfd = open(logfile, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR|S_IWUSR)) < 0) { virReportSystemError(conn, errno, _("failed to open '%s'"),