From: Lennart Poettering Date: Wed, 16 Sep 2020 15:51:25 +0000 (+0200) Subject: repart: don't mark image files generated with --empty=create executable X-Git-Tag: v247-rc1~222^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17080%2Fhead;p=thirdparty%2Fsystemd.git repart: don't mark image files generated with --empty=create executable --- diff --git a/src/partition/repart.c b/src/partition/repart.c index 28c9de7b2be..83582b46910 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);