aboutsummaryrefslogtreecommitdiff
path: root/ui/console.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-11-08 18:17:10 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2020-01-02 16:29:32 +0400
commit53a61ecbb16b28c707f0b126193d226a25c28cb2 (patch)
tree41dc204aa46a471cbe679a259592541e58bebcfa /ui/console.c
parentee13240e60a02836426140d384e363be5d8f8bbe (diff)
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);
}
}