summaryrefslogtreecommitdiff
path: root/src/posix.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2011-10-28 19:04:23 -0700
committerVicent Martí <tanoku@gmail.com>2011-10-28 19:04:23 -0700
commit89fb8f025a1f72b90f1f9563c85bf43b7f66ba60 (patch)
tree11726793eecf4670d4948a22e276dd3d50d1addb /src/posix.c
parent3286c408eccb18c525ca123383f3ebf5097441bc (diff)
parent01ad7b3a9ec8f5e465f94c2704e1e96b84f941c7 (diff)
downloadlibgit2-89fb8f025a1f72b90f1f9563c85bf43b7f66ba60.tar.gz
Merge pull request #456 from brodie/perm-fixes
Create objects, indexes, and directories with the right file permissions
Diffstat (limited to 'src/posix.c')
-rw-r--r--src/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posix.c b/src/posix.c
index 1b85b053d..7cd0749b6 100644
--- a/src/posix.c
+++ b/src/posix.c
@@ -17,7 +17,7 @@ int p_open(const char *path, int flags)
return open(path, flags | O_BINARY);
}
-int p_creat(const char *path, int mode)
+int p_creat(const char *path, mode_t mode)
{
return open(path, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, mode);
}