diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/builtins.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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; |