mirror of
https://git.proxmox.com/git/qemu
synced 2025-07-09 16:27:25 +00:00
Use 3-argument open call when creating file.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1791 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
53a5960aad
commit
89ba1a738e
2
vl.c
2
vl.c
@ -1288,7 +1288,7 @@ CharDriverState *qemu_chr_open_file_out(const char *file_out)
|
|||||||
{
|
{
|
||||||
int fd_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)
|
if (fd_out < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
return qemu_chr_open_fd(-1, fd_out);
|
return qemu_chr_open_fd(-1, fd_out);
|
||||||
|
Loading…
Reference in New Issue
Block a user