mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 08:14:28 +08:00
peripheral: Cleanup deprecated symbolic file permissions
This commit is contained in:
parent
c8a47b6d67
commit
e34869b92d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user