summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-09-16 17:51:25 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-09-20 12:04:42 +0200
commit48a308b76a9f1f44d68ae832eedd39978b93700c (patch)
tree3f7fa32955077c7707ca72a513b738b28bc9e9fa
parent9353607ef3cff4902296268bab0ccc82dc8b04c2 (diff)
downloadsystemd-48a308b76a9f1f44d68ae832eedd39978b93700c.tar.gz
repart: don't mark image files generated with --empty=create executable
(cherry picked from commit 5332d7c6ff3c56340c7477e1e7604f61092a2868)
-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 9a35e9b738..c94b493d96 100644
--- a/src/partition/repart.c
+++ b/src/partition/repart.c
@@ -3142,7 +3142,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);