Skip to content

Commit ba4b9c0

Browse files
committed
Fix for recent Win32 pg_dump tar temp file patch.
Hiroshi Saito
1 parent 3f50ba2 commit ba4b9c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin/pg_dump/pg_backup_tar.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
*
1818
* IDENTIFICATION
19-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.53 2006/06/27 01:16:58 momjian Exp $
19+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.54 2006/06/27 02:56:41 momjian Exp $
2020
*
2121
*-------------------------------------------------------------------------
2222
*/
@@ -25,6 +25,7 @@
2525
#include "pg_backup_archiver.h"
2626
#include "pg_backup_tar.h"
2727

28+
#include <sys/stat.h>
2829
#include <ctype.h>
2930
#include <limits.h>
3031
#include <unistd.h>
@@ -376,7 +377,7 @@ tarOpen(ArchiveHandle *AH, const char *filename, char mode)
376377
if (name == NULL)
377378
break;
378379
fd = open(name, O_RDWR | O_CREAT | O_EXCL | O_BINARY |
379-
O_TEMPORARY, S_IREAD | S_IWRITE);
380+
O_TEMPORARY, S_IRUSR | S_IWUSR);
380381
free(name);
381382

382383
if (fd != -1) /* created a file */

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