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);