--- tools/libxc/powerpc64/mk_flatdevtree.c.orig 2007-02-06 16:15:47.000000000 -0600 +++ tools/libxc/powerpc64/mk_flatdevtree.c 2007-02-06 16:33:06.000000000 -0600 @@ -618,7 +618,7 @@ } /* write a copy of the tree to a file */ - if ((dtb_fd = open(DTB_FILE , O_RDWR)) == -1) { + if ((dtb_fd = open(DTB_FILE, O_CREAT|O_RDWR)) == -1) { PERROR("%s: failed to open file %s", __func__, DTB_FILE); goto error; }