screendump: use qemu_unlink()

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>
This commit is contained in:
Marc-André Lureau
2020-01-02 16:29:32 +04:00
parent ee13240e60
commit 53a61ecbb1
+1 -1
View 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);
}
}