commit | 18c34183d76be2efbf2f498ec0185c1ceffa49f0 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Tue Sep 17 15:04:45 2013 -0700 |
committer | Android Git Automerger <android-git-automerger@android.com> | Tue Sep 17 15:04:45 2013 -0700 |
tree | d275a7a4217c05654c5071e5a42cc913a7b0d9ef | |
parent | e6e5daace55672b1ec8fb6c5c17a85ee1531f7ad [diff] | |
parent | 5535b05120fa3fd3d68a09e01284aba35cc6e058 [diff] |
am 5535b051: write_file: introduce O_NOFOLLOW, use sane mask * commit '5535b05120fa3fd3d68a09e01284aba35cc6e058': write_file: introduce O_NOFOLLOW, use sane mask
diff --git a/init/builtins.c b/init/builtins.c index bfc0ddb..e8c8f91 100644 --- a/init/builtins.c +++ b/init/builtins.c
@@ -57,7 +57,7 @@ { 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;