aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2011-12-21 14:47:26 +0000
committerAnthony PERARD <anthony.perard@citrix.com>2011-12-21 14:47:26 +0000
commit1a061168bd1ded7ba5623100f1890288fc8e6afc (patch)
treeb1f009931372858de2574e6981722a89243eb527 /tools
parent68471b6a19c21353c8c849d3205af690e3cf7e38 (diff)
downloadxen-1a061168bd1ded7ba5623100f1890288fc8e6afc.tar.gz
xen-1a061168bd1ded7ba5623100f1890288fc8e6afc.tar.bz2
xen-1a061168bd1ded7ba5623100f1890288fc8e6afc.zip
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> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/libxl/libxl_dom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c
index 47e908baad..c898d89773 100644
--- a/tools/libxl/libxl_dom.c
+++ b/tools/libxl/libxl_dom.c
@@ -623,7 +623,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");