summaryrefslogtreecommitdiff
path: root/peripheral
diff options
context:
space:
mode:
authorBrian Gix <brian.gix@intel.com>2021-02-23 10:43:42 -0800
committerBrian Gix <brian.gix@intel.com>2021-02-23 16:59:46 -0800
commite34869b92d83eaabcbcb149d7a092d6f8471b1fb (patch)
treec9cde002d42ca0fc8f712dc016b7b0627783c958 /peripheral
parentc8a47b6d67a2941e657212746fa470f8add9c443 (diff)
downloadbluez-e34869b92d83eaabcbcb149d7a092d6f8471b1fb.tar.gz
peripheral: Cleanup deprecated symbolic file permissions
Diffstat (limited to 'peripheral')
-rw-r--r--peripheral/efivars.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/peripheral/efivars.c b/peripheral/efivars.c
index 74fceed3e..987572b63 100644
--- a/peripheral/efivars.c
+++ b/peripheral/efivars.c
@@ -98,8 +98,7 @@ int efivars_write(const char *name, uint32_t attributes,
if (!buf)
return -ENOMEM;
- fd = open(pathname, O_CREAT | O_WRONLY | O_TRUNC | O_CLOEXEC,
- S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
+ fd = open(pathname, O_CREAT | O_WRONLY | O_TRUNC | O_CLOEXEC, 0644);
if (fd < 0) {
free(buf);
return -EIO;