Skip to content

Commit d0ab409

Browse files
committed
Add missing third argument to open().
1 parent a600605 commit d0ab409

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/fsync/test_fsync.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
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 $
33
*
44
*
55
* test_fsync.c
@@ -60,7 +60,7 @@ main(int argc, char *argv[])
6060
for (i = 0; i < XLOG_SEG_SIZE; i++)
6161
full_buf[i] = 'a';
6262

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)
6464
die("Cannot open output file.");
6565
if (write(tmpfile, full_buf, XLOG_SEG_SIZE) != XLOG_SEG_SIZE)
6666
die("write failed");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy