[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 7/7] screendump: use qemu_unlink()
From: |
Marc-André Lureau |
Subject: |
[PULL v2 7/7] screendump: use qemu_unlink() |
Date: |
Fri, 3 Jan 2020 13:08:53 +0400 |
Don't attempt to remove /dev/fdset files.
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Daniel P. Berrangé <address@hidden>
---
ui/console.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
}
--
2.24.0.308.g228f53135a
- [PULL v2 0/7] Screendump patches, Marc-André Lureau, 2020/01/03
- [PULL v2 1/7] console: add graphic_hw_update_done(), Marc-André Lureau, 2020/01/03
- [PULL v2 2/7] ppm-save: pass opened fd, Marc-André Lureau, 2020/01/03
- [PULL v2 3/7] ui: add pixman image g_autoptr support, Marc-André Lureau, 2020/01/03
- [PULL v2 4/7] object: add g_autoptr support, Marc-André Lureau, 2020/01/03
- [PULL v2 5/7] screendump: replace FILE with QIOChannel and fix close()/qemu_close(), Marc-André Lureau, 2020/01/03
- [PULL v2 6/7] osdep: add qemu_unlink(), Marc-André Lureau, 2020/01/03
- [PULL v2 7/7] screendump: use qemu_unlink(),
Marc-André Lureau <=
- Re: [PULL v2 0/7] Screendump patches, Peter Maydell, 2020/01/06