[PATCH 2/2] qemu: never unlink() the core dump output file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The comment above virQEMUFileOpenAs() implies any result should be
left intact.

Signed-off-by: Simon Rowe <simon.rowe@xxxxxxxxxxx>
---
 src/qemu/qemu_driver.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index f31e13889e..b1ac1cb73b 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -3282,8 +3282,6 @@ doCoreDump(virQEMUDriver *driver,
     if (qemuDomainFileWrapperFDClose(vm, wrapperFd) < 0)
         ret = -1;
     virFileWrapperFdFree(wrapperFd);
-    if (ret != 0)
-        unlink(path);
     return ret;
 }
 
-- 
2.22.3




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux