summaryrefslogtreecommitdiffstats
path: root/ui/console.c
diff options
context:
space:
mode:
authorMarc-André Lureau2019-11-08 15:17:10 +0100
committerMarc-André Lureau2020-01-02 13:29:32 +0100
commit53a61ecbb16b28c707f0b126193d226a25c28cb2 (patch)
tree41dc204aa46a471cbe679a259592541e58bebcfa /ui/console.c
parentosdep: add qemu_unlink() (diff)
downloadqemu-53a61ecbb16b28c707f0b126193d226a25c28cb2.tar.gz
qemu-53a61ecbb16b28c707f0b126193d226a25c28cb2.tar.xz
qemu-53a61ecbb16b28c707f0b126193d226a25c28cb2.zip
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>
Diffstat (limited to 'ui/console.c')
-rw-r--r--ui/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/console.c b/ui/console.c
index 82c0b72e7e..ac79d679f5 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -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);
}
}