[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxl: Fix, specify open mode to QEMU state file.



# HG changeset patch
# User Anthony PERARD <anthony.perard@xxxxxxxxxx>
# Date 1324478846 0
# Node ID b3455a4d22983aaf66712ffdca76486412272eb2
# Parent  16dc2a1cd40f68be4f366f64934548b6824e8f18
libxl: Fix, specify open mode to QEMU state file.

Reported-by: Olaf Hering <olaf@xxxxxxxxx>
Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---


diff -r 16dc2a1cd40f -r b3455a4d2298 tools/libxl/libxl_dom.c
--- a/tools/libxl/libxl_dom.c   Wed Dec 21 14:26:09 2011 +0100
+++ b/tools/libxl/libxl_dom.c   Wed Dec 21 14:47:26 2011 +0000
@@ -623,7 +623,7 @@
         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");

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.