diff options
| author | Vicent Martà <tanoku@gmail.com> | 2011-10-28 19:04:23 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2011-10-28 19:04:23 -0700 |
| commit | 89fb8f025a1f72b90f1f9563c85bf43b7f66ba60 (patch) | |
| tree | 11726793eecf4670d4948a22e276dd3d50d1addb /tests/t18-status.c | |
| parent | 3286c408eccb18c525ca123383f3ebf5097441bc (diff) | |
| parent | 01ad7b3a9ec8f5e465f94c2704e1e96b84f941c7 (diff) | |
| download | libgit2-89fb8f025a1f72b90f1f9563c85bf43b7f66ba60.tar.gz | |
Merge pull request #456 from brodie/perm-fixes
Create objects, indexes, and directories with the right file permissions
Diffstat (limited to 'tests/t18-status.c')
| -rw-r--r-- | tests/t18-status.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/t18-status.c b/tests/t18-status.c index bd205a438..d836fb9a9 100644 --- a/tests/t18-status.c +++ b/tests/t18-status.c @@ -37,7 +37,7 @@ static int file_create(const char *filename, const char *content) { int fd; - fd = p_creat(filename, 0644); + fd = p_creat(filename, 0666); if (fd == 0) return GIT_ERROR; if (p_write(fd, content, strlen(content)) != 0) @@ -400,7 +400,7 @@ BEGIN_TEST(singlestatus3, "test retrieving status for a new file in an empty rep must_pass(remove_placeholders(TEST_STD_REPO_FOLDER, "dummy-marker.txt")); git_path_join(file_path, TEMP_REPO_FOLDER, filename); - fd = p_creat(file_path, 0644); + fd = p_creat(file_path, 0666); must_pass(fd); must_pass(p_write(fd, "new_file\n", 9)); must_pass(p_close(fd)); |
