diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-09-16 17:51:25 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-20 12:04:42 +0200 |
commit | 48a308b76a9f1f44d68ae832eedd39978b93700c (patch) | |
tree | 3f7fa32955077c7707ca72a513b738b28bc9e9fa | |
parent | 9353607ef3cff4902296268bab0ccc82dc8b04c2 (diff) | |
download | systemd-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.c | 2 |
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); |