From 70dcd730f800486ccae6b2c10edaba2645f5a39a Mon Sep 17 00:00:00 2001 From: pbrook Date: Tue, 28 Mar 2006 20:20:38 +0000 Subject: [PATCH] Use 3-argument open call when creating file. --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vl.c b/vl.c index e0406eae..3a99cbd7 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); -- 2.39.5