diff options
author | Marc-André Lureau | 2019-11-08 15:17:10 +0100 |
---|---|---|
committer | Marc-André Lureau | 2020-01-02 13:29:32 +0100 |
commit | 53a61ecbb16b28c707f0b126193d226a25c28cb2 (patch) | |
tree | 41dc204aa46a471cbe679a259592541e58bebcfa /ui/console.c | |
parent | osdep: add qemu_unlink() (diff) | |
download | qemu-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.c | 2 |
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); } } |