Diff between a670a23b081b1e9461204c20a7f102e017533eab and b02298efd3d3f88bccfe3b0b150b96b5e45cf81d

Changed Files

File Additions Deletions Status
mesh/rpl.c +1 -1 modified

Full Patch

diff --git a/mesh/rpl.c b/mesh/rpl.c
index 7cea8e3..ac0f6b6 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)