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:
Nick Kralevich 2013-09-17 15:04:45 -07:00 committed by Android Git Automerger
commit 18c34183d7
1 changed files with 1 additions and 1 deletions

View File

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