Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd0ab409

Browse files
committed
Add missing third argument to open().
1 parenta600605 commitd0ab409

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)

[8]ページ先頭

©2009-2025 Movatter.jp