From: Colin Walters Date: Thu, 25 Aug 2016 00:18:09 +0000 (-0400) Subject: pull: Make .commitpartial files world readable X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~48^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=05ac14326c824748d37aaabf045856c478b82b05;p=ostree.git pull: Make .commitpartial files world readable In CentOS, these happened to appear in a repo that is served via rsync, and having them not be world-readable caused mirroring tools to fail. They aren't secret, so don't make them so. Closes: #468 Approved by: giuseppe --- diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index f990c6b2..066233be 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -423,7 +423,7 @@ write_commitpartial_for (OtPullData *pull_data, g_autofree char *commitpartial_path = _ostree_get_commitpartial_path (checksum); glnx_fd_close int fd = -1; - fd = openat (pull_data->repo->repo_dir_fd, commitpartial_path, O_EXCL | O_CREAT | O_WRONLY | O_CLOEXEC | O_NOCTTY, 0600); + fd = openat (pull_data->repo->repo_dir_fd, commitpartial_path, O_EXCL | O_CREAT | O_WRONLY | O_CLOEXEC | O_NOCTTY, 0644); if (fd == -1) { if (errno != EEXIST)