[PATCH] qemu: Don't pass mode when opening domain log file for reading

Daniel P. Berrangé berrange at redhat.com
Fri Oct 23 18:02:06 UTC 2020


On Fri, Oct 23, 2020 at 07:42:39PM +0200, Michal Privoznik wrote:
> 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 at redhat.com>
> ---
>  src/qemu/qemu_domain.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list