peripheral: Cleanup deprecated symbolic file permissions

This commit is contained in:
Brian Gix 2021-02-23 10:43:42 -08:00
parent c8a47b6d67
commit e34869b92d

View File

@ -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;