This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] [LIBXC][POWERPC] make sure DTB is truncat

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [LIBXC][POWERPC] make sure DTB is truncated and has a decent mode
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 07 Mar 2007 11:30:38 -0800
Delivery-date: Wed, 07 Mar 2007 11:31:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Date 1170936326 18000
# Node ID fdb3c96eba0f8d898dd5e734598ddc671114f1a1
# Parent  1b1d0a909abc4aebd24d4449694d1121e74427be
[LIBXC][POWERPC] make sure DTB is truncated and has a decent mode
Also, since we only write to this FD, we mau as well use creat(2)
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
 tools/libxc/powerpc64/mk_flatdevtree.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 1b1d0a909abc -r fdb3c96eba0f tools/libxc/powerpc64/mk_flatdevtree.c
--- a/tools/libxc/powerpc64/mk_flatdevtree.c    Thu Feb 08 06:46:13 2007 -0500
+++ b/tools/libxc/powerpc64/mk_flatdevtree.c    Thu Feb 08 07:05:26 2007 -0500
@@ -618,7 +618,7 @@ int make_devtree(struct ft_cxt *root,
     /* write a copy of the tree to a file */
-    if ((dtb_fd = open(DTB_FILE , O_CREAT|O_RDWR)) == -1) {
+    if ((dtb_fd = creat(DTB_FILE, S_IRUSR | S_IWUSR)) == -1) {
         PERROR("%s: failed to open file %s", __func__, DTB_FILE);
         goto error;

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [LIBXC][POWERPC] make sure DTB is truncated and has a decent mode, Xen patchbot-unstable <=