Anthony PERARD
2011-Dec-21 10:20 UTC
[PATCH] libxl: Fix, specify open mode to QEMU state file.
Reported-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> --- tools/libxl/libxl_dom.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c index 7683601..70ddae2 100644 --- a/tools/libxl/libxl_dom.c +++ b/tools/libxl/libxl_dom.c @@ -624,7 +624,7 @@ int libxl__domain_save_device_model(libxl__gc *gc, uint32_t domid, int fd) break; } case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN: - fd2 = open(filename, O_WRONLY | O_CREAT | O_TRUNC); + fd2 = open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); if (fd2 < 0) { LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR, "Unable to create a QEMU save file\n"); -- tg: (49ec8ad..) fix/xl-save-open-mode-for-open-migrate (depends on: master)
Ian Jackson
2011-Dec-21 14:47 UTC
Re: [PATCH] libxl: Fix, specify open mode to QEMU state file.
Anthony PERARD writes ("[Xen-devel] [PATCH] libxl: Fix, specify open mode to QEMU state file."):> Reported-by: Olaf Hering <olaf@aepfle.de> > Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>Thanks. Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>