summaryrefslogtreecommitdiff
path: root/src/blob.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2013-11-05 04:48:45 -0800
committerEdward Thomson <ethomson@edwardthomson.com>2013-11-05 04:48:45 -0800
commit3ae66ef1af2af9132c96c57bf5c6e2cfdb1f617c (patch)
tree8615cf3c6a3cbfe454d108896b3b6b7d3904d531 /src/blob.c
parentb47949254ee5b7e5801fd3d1d80136bff5db938a (diff)
parent1d3a8aeb4bd032d0bf34039fbcb308fba06b862a (diff)
downloadlibgit2-3ae66ef1af2af9132c96c57bf5c6e2cfdb1f617c.tar.gz
Merge pull request #1940 from ethomson/filebuf_umask
Take umask into account in filebuf_commit
Diffstat (limited to 'src/blob.c')
-rw-r--r--src/blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blob.c b/src/blob.c
index e18db4dfc..2c6d52800 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -284,7 +284,7 @@ int git_blob_create_fromchunks(
content = git__malloc(BUFFER_SIZE);
GITERR_CHECK_ALLOC(content);
- if (git_filebuf_open(&file, git_buf_cstr(&path), GIT_FILEBUF_TEMPORARY) < 0)
+ if (git_filebuf_open(&file, git_buf_cstr(&path), GIT_FILEBUF_TEMPORARY, 0666) < 0)
goto cleanup;
while (1) {