mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
tools: Set mode for new file /tmp/mt76-test-%s
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]>
This commit is contained in:
committed by
Felix Fietkau
parent
7a93026dd3
commit
4c8a09cc45
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user