Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18c34183 authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

am 5535b051: write_file: introduce O_NOFOLLOW, use sane mask

* commit '5535b051':
  write_file: introduce O_NOFOLLOW, use sane mask
parents e6e5daac 5535b051
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;