|
1 | 1 | /* |
2 | | - * $PostgreSQL: pgsql/src/tools/fsync/test_fsync.c,v 1.21 2008/05/17 01:28:26 adunstan Exp $ |
| 2 | + * $PostgreSQL: pgsql/src/tools/fsync/test_fsync.c,v 1.22 2009/05/08 14:06:27 momjian Exp $ |
3 | 3 | * |
4 | 4 | * |
5 | 5 | *test_fsync.c |
@@ -60,7 +60,7 @@ main(int argc, char *argv[]) |
60 | 60 | for (i=0;i<XLOG_SEG_SIZE;i++) |
61 | 61 | full_buf[i]='a'; |
62 | 62 |
|
63 | | -if ((tmpfile=open(filename,O_RDWR |O_CREAT,S_IRUSR |S_IWUSR))==-1) |
| 63 | +if ((tmpfile=open(filename,O_RDWR |O_CREAT,S_IRUSR |S_IWUSR,0))==-1) |
64 | 64 | die("Cannot open output file."); |
65 | 65 | if (write(tmpfile,full_buf,XLOG_SEG_SIZE)!=XLOG_SEG_SIZE) |
66 | 66 | die("write failed"); |
|