Skip to content

Commit

Permalink
tools: Set mode for new file /tmp/mt76-test-%s
Browse files Browse the repository at this point in the history
Set the file system mode for the newly created file /tmp/mt76-test-%s,
this is mandatory according to the man page and fixes a compile error
with glibc.

Signed-off-by: Hauke Mehrtens <[email protected]>
  • Loading branch information
hauke authored and nbd168 committed Jan 14, 2021
1 parent 7a93026 commit 4c8a09c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ mt76_eeprom_create_file(void)
return -1;
}

fd = open(eeprom_file, O_RDWR | O_CREAT | O_EXCL);
fd = open(eeprom_file, O_RDWR | O_CREAT | O_EXCL, 00644);
if (fd < 0)
goto out;

Expand Down

0 comments on commit 4c8a09c

Please sign in to comment.