]> git.proxmox.com Git - qemu.git/commitdiff
Use 3-argument open call when creating file.
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 28 Mar 2006 20:20:38 +0000 (20:20 +0000)
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 28 Mar 2006 20:20:38 +0000 (20:20 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1791 c046a42c-6fe2-441c-8c8c-71466251a162

vl.c

diff --git a/vl.c b/vl.c
index e0406eae9e4306f27cdb3fdddcde00cebe347937..3a99cbd795a469167a45a68556556ff286af893f 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -1288,7 +1288,7 @@ CharDriverState *qemu_chr_open_file_out(const char *file_out)
 {
     int fd_out;
 
-    fd_out = open(file_out, O_WRONLY | O_TRUNC | O_CREAT | O_BINARY);
+    fd_out = open(file_out, O_WRONLY | O_TRUNC | O_CREAT | O_BINARY, 0666);
     if (fd_out < 0)
         return NULL;
     return qemu_chr_open_fd(-1, fd_out);