diff mbox series

[v6,21/25] screendump: use qemu_unlink()

Message ID 20191108150123.12213-22-marcandre.lureau@redhat.com
State New
Headers show
Series monitor: add asynchronous command type | expand

Commit Message

Marc-André Lureau Nov. 8, 2019, 3:01 p.m. UTC
Don't attempt to remove /dev/fdset files.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 ui/console.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/ui/console.c b/ui/console.c
index 587edf4ed4..e6ac462aa0 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -381,7 +381,7 @@  void qmp_screendump(const char *filename, bool has_device, const char *device,
     }
 
     if (!ppm_save(fd, surface, errp)) {
-        unlink(filename);
+        qemu_unlink(filename);
     }
 }