|
6 | 6 | *
|
7 | 7 | * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
|
8 | 8 | *
|
9 |
| - * $PostgreSQL: pgsql/src/port/open.c,v 1.14 2006/08/30 18:06:27 tgl Exp $ |
| 9 | + * $PostgreSQL: pgsql/src/port/open.c,v 1.15 2006/09/24 17:19:53 tgl Exp $ |
10 | 10 | *
|
11 | 11 | *-------------------------------------------------------------------------
|
12 | 12 | */
|
@@ -126,7 +126,7 @@ pgwin32_fopen(const char *fileName, const char *mode)
|
126 | 126 | elseif (strchr(mode,'w'))
|
127 | 127 | openmode |=O_WRONLY |O_CREAT |O_TRUNC;
|
128 | 128 | if (strchr(mode,'a'))
|
129 |
| -openmode |=O_WRONLY |O_APPEND; |
| 129 | +openmode |=O_WRONLY |O_CREAT |O_APPEND; |
130 | 130 |
|
131 | 131 | if (strchr(mode,'b'))
|
132 | 132 | openmode |=O_BINARY;
|
|