am 5535b051: write_file: introduce O_NOFOLLOW, use sane mask
* commit '5535b05120fa3fd3d68a09e01284aba35cc6e058': write_file: introduce O_NOFOLLOW, use sane mask
This commit is contained in:
commit
18c34183d7
|
@ -57,7 +57,7 @@ static int write_file(const char *path, const char *value)
|
|||
{
|
||||
int fd, ret, len;
|
||||
|
||||
fd = open(path, O_WRONLY|O_CREAT, 0622);
|
||||
fd = open(path, O_WRONLY|O_CREAT|O_NOFOLLOW, 0600);
|
||||
|
||||
if (fd < 0)
|
||||
return -errno;
|
||||
|
|
Loading…
Reference in New Issue