diff options
author | Bruce Momjian | 2009-05-08 14:06:27 +0000 |
---|---|---|
committer | Bruce Momjian | 2009-05-08 14:06:27 +0000 |
commit | 6f1d7bc52090996c8808f40f9e41a44fb483f309 (patch) | |
tree | d0b641ed9981cf86f89753bd9aba7f3a2f195fd4 | |
parent | 853f503f465943728e7eb8cd3461ddc492981166 (diff) |
Add missing third argument to open().
-rw-r--r-- | src/tools/fsync/test_fsync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/fsync/test_fsync.c b/src/tools/fsync/test_fsync.c index 15f53d4cc4..48c4c2929b 100644 --- a/src/tools/fsync/test_fsync.c +++ b/src/tools/fsync/test_fsync.c @@ -1,5 +1,5 @@ /* - * $PostgreSQL:$ + * $PostgreSQL$ * * * test_fsync.c @@ -60,7 +60,7 @@ main(int argc, char *argv[]) for (i = 0; i < XLOG_SEG_SIZE; i++) full_buf[i] = 'a'; - if ((tmpfile = open(filename, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR)) == -1) + if ((tmpfile = open(filename, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR, 0)) == -1) die("Cannot open output file."); if (write(tmpfile, full_buf, XLOG_SEG_SIZE) != XLOG_SEG_SIZE) die("write failed"); |