aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-03-28 20:20:38 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-03-28 20:20:38 +0000
commit89ba1a738e9ed8c2712524336de1add8ddc25f7e (patch)
tree4bc7a349dfb44c4826f7d890ef5cbf3b93eeab3e
parent53a5960aadd542dd27b8705ac30df154557d5ffc (diff)
Use 3-argument open call when creating file.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1791 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index e0406eae9e..3a99cbd795 100644
--- 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);