summaryrefslogtreecommitdiff
path: root/mesh/rpl.c
diff options
context:
space:
mode:
authorBrian Gix <brian.gix@intel.com>2021-02-23 10:39:57 -0800
committerBrian Gix <brian.gix@intel.com>2021-02-23 16:59:46 -0800
commitb02298efd3d3f88bccfe3b0b150b96b5e45cf81d (patch)
tree8a12e492786f6b7238453543d8b42dbbfb32c1b8 /mesh/rpl.c
parenta670a23b081b1e9461204c20a7f102e017533eab (diff)
downloadbluez-b02298efd3d3f88bccfe3b0b150b96b5e45cf81d.tar.gz
mesh: Cleanup deprecated symbolic file permissions
Diffstat (limited to 'mesh/rpl.c')
-rw-r--r--mesh/rpl.c2
1 files changed, 1 insertions, 1 deletions
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)