--- mesh/rpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh/rpl.c b/mesh/rpl.c index 7cea8e346..ac0f6b6f2 100644 --- a/mesh/rpl.c +++ b/mesh/rpl.c @@ -62,7 +62,7 @@ bool rpl_put_entry(struct mesh_node *node, uint16_t src, uint32_t iv_index, snprintf(src_file, PATH_MAX, "%s%s/%8.8x/%4.4x", node_path, rpl_dir, iv_index, src); - fd = open(src_file, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); + fd = open(src_file, O_WRONLY | O_CREAT | O_TRUNC, 0600); if (fd >= 0) { snprintf(seq_txt, 7, "%6.6x", seq); if (write(fd, seq_txt, 6) == 6) -- 2.25.4