diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-11-08 18:17:10 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-01-02 16:29:32 +0400 |
commit | 53a61ecbb16b28c707f0b126193d226a25c28cb2 (patch) | |
tree | 41dc204aa46a471cbe679a259592541e58bebcfa /ui/console.c | |
parent | ee13240e60a02836426140d384e363be5d8f8bbe (diff) | |
download | qemu-53a61ecbb16b28c707f0b126193d226a25c28cb2.zip qemu-53a61ecbb16b28c707f0b126193d226a25c28cb2.tar.gz qemu-53a61ecbb16b28c707f0b126193d226a25c28cb2.tar.bz2 |
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 82c0b72..ac79d67 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); } } |