mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 06:50:34 +08:00
fix completely wrong file permissions for log files & mavlink ftp (new mode 666)
This commit is contained in:
@@ -576,7 +576,7 @@ int open_perf_file(const char* str)
|
||||
#ifdef __PX4_NUTTX
|
||||
int fd = open(log_file_path, O_CREAT | O_WRONLY | O_DSYNC);
|
||||
#else
|
||||
int fd = open(log_file_path, O_CREAT | O_WRONLY | O_DSYNC, 0x0777);
|
||||
int fd = open(log_file_path, O_CREAT | O_WRONLY | O_DSYNC, 0666);
|
||||
#endif
|
||||
|
||||
if (fd < 0) {
|
||||
|
||||
Reference in New Issue
Block a user