Commit 89ba1a738e9ed8c2712524336de1add8ddc25f7e

Authored by pbrook
1 parent 53a5960a

Use 3-argument open call when creating file.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1791 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
... ... @@ -1288,7 +1288,7 @@ CharDriverState *qemu_chr_open_file_out(const char *file_out)
1288 1288 {
1289 1289 int fd_out;
1290 1290  
1291   - fd_out = open(file_out, O_WRONLY | O_TRUNC | O_CREAT | O_BINARY);
  1291 + fd_out = open(file_out, O_WRONLY | O_TRUNC | O_CREAT | O_BINARY, 0666);
1292 1292 if (fd_out < 0)
1293 1293 return NULL;
1294 1294 return qemu_chr_open_fd(-1, fd_out);
... ...