]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Don't pass mode when opening domain log file for reading
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 23 Oct 2020 17:39:03 +0000 (19:39 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 26 Oct 2020 07:52:13 +0000 (08:52 +0100)
commit57365935000ea9b789d8ed6f15bcd24058da9fa6
treee9452441fd6244617e2e6e7e4ce955e26ad7f74d
parent53aec799fa31711ffaeacc7ec17ec6d3c2e3cadf
qemu: Don't pass mode when opening domain log file for reading

In qemuDomainLogContextNew() the domain log file is opened.
Twice, the first time for writing, and the second time for
reading (if required by caller). When opening the log file for
reading a mode is provided. This doesn't do much harm, but is
unnecessary. Drop the mode.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_domain.c