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
This commit is contained in:
Colin Walters 2016-08-24 20:18:09 -04:00 committed by Atomic Bot
parent 76166cb52e
commit 05ac14326c
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ write_commitpartial_for (OtPullData *pull_data,
g_autofree char *commitpartial_path = _ostree_get_commitpartial_path (checksum); g_autofree char *commitpartial_path = _ostree_get_commitpartial_path (checksum);
glnx_fd_close int fd = -1; 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 (fd == -1)
{ {
if (errno != EEXIST) if (errno != EEXIST)