mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix missing open() flags in xymodem_receive()
This commit is contained in:
parent
883acbaa4b
commit
7e0bd980f2
1 changed files with 1 additions and 1 deletions
|
|
@ -711,7 +711,7 @@ int xymodem_receive(int sio, const char *filename, modem_mode_t mode)
|
|||
int rc, fd;
|
||||
|
||||
/* Create new file */
|
||||
fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC);
|
||||
fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
|
||||
if (fd < 0) {
|
||||
tio_error_print("Could not open file");
|
||||
return ERR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue