]> git.proxmox.com Git - mirror_qemu.git/commitdiff
screendump: use qemu_unlink()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 8 Nov 2019 14:17:10 +0000 (18:17 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 2 Jan 2020 12:29:32 +0000 (16:29 +0400)
Don't attempt to remove /dev/fdset files.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
ui/console.c

index 82c0b72e7e804fbd0b27d32f55677546944fc707..ac79d679f5763d4c90f06859bd3b2671e80135cf 100644 (file)
@@ -380,7 +380,7 @@ void qmp_screendump(const char *filename, bool has_device, const char *device,
     }
 
     if (!ppm_save(fd, surface, errp)) {
-        unlink(filename);
+        qemu_unlink(filename);
     }
 }