peripheral: Cleanup deprecated symbolic file permissions
authorBrian Gix <brian.gix@intel.com>
Tue, 23 Feb 2021 18:43:42 +0000 (10:43 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:34 +0000 (19:08 +0530)
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
peripheral/efivars.c

index 8815ecc..387ec89 100755 (executable)
@@ -97,8 +97,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;