summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnita Zhang <the.anitazha@gmail.com>2020-09-16 16:58:19 -0700
committerGitHub <noreply@github.com>2020-09-16 16:58:19 -0700
commitbded6ff0d0da905a82884ccccbe729af42cc207d (patch)
tree4cf01686ab52a0d18bbdf9ef1751caf2bce42bfc /src
parenta7ddeea15da4242f0544f1113da2673bdcd77ebd (diff)
parent5332d7c6ff3c56340c7477e1e7604f61092a2868 (diff)
downloadsystemd-bded6ff0d0da905a82884ccccbe729af42cc207d.tar.gz
Merge pull request #17080 from poettering/repart-umask-fix
repart: don't mark image files generated with --empty=create executable
Diffstat (limited to 'src')
-rw-r--r--src/partition/repart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partition/repart.c b/src/partition/repart.c
index 28c9de7b2b..83582b4691 100644
--- a/src/partition/repart.c
+++ b/src/partition/repart.c
@@ -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);