qemu_passt: Actually use @logfd

In one of my previous commits I've introduced @logfd variable
that was supposed to hold FD of passt logfile. But I've forgot to
assign the qemuDomainOpenFile() retval to it.

Fixes: 8511b96a31
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2023-06-27 08:51:36 +02:00
parent ceb4dc8e17
commit 83686f1eea

View File

@ -204,9 +204,9 @@ qemuPasstStart(virDomainObj *vm,
/* The logFile location is not restricted to a per-domain directory. It /* The logFile location is not restricted to a per-domain directory. It
* can be anywhere. Pre-create it as passt may not have enough perms to * can be anywhere. Pre-create it as passt may not have enough perms to
* do so. */ * do so. */
if (qemuDomainOpenFile(cfg, vm->def, net->backend.logFile, if ((logfd = qemuDomainOpenFile(cfg, vm->def, net->backend.logFile,
O_CREAT | O_TRUNC | O_APPEND | O_RDWR, O_CREAT | O_TRUNC | O_APPEND | O_RDWR,
&needUnlink) < 0) { &needUnlink)) < 0) {
return -1; return -1;
} }