Merge pull request #17080 from poettering/repart-umask-fix

repart: don't mark image files generated with --empty=create executable
This commit is contained in:
Anita Zhang 2020-09-16 16:58:19 -07:00 committed by GitHub
commit bded6ff0d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3833,7 +3833,7 @@ static int find_root(char **ret, int *ret_fd) {
if (!s)
return log_oom();
fd = open(arg_node, O_RDONLY|O_CREAT|O_EXCL|O_CLOEXEC|O_NOFOLLOW, 0777);
fd = open(arg_node, O_RDONLY|O_CREAT|O_EXCL|O_CLOEXEC|O_NOFOLLOW, 0666);
if (fd < 0)
return log_error_errno(errno, "Failed to create '%s': %m", arg_node);