summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2009-05-08 14:06:27 +0000
committerBruce Momjian2009-05-08 14:06:27 +0000
commit6f1d7bc52090996c8808f40f9e41a44fb483f309 (patch)
treed0b641ed9981cf86f89753bd9aba7f3a2f195fd4
parent853f503f465943728e7eb8cd3461ddc492981166 (diff)
Add missing third argument to open().
-rw-r--r--src/tools/fsync/test_fsync.c4
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");