From: Bruce Momjian Date: Tue, 27 Jun 2006 02:56:46 +0000 (+0000) Subject: Fix for recent Win32 pg_dump tar temp file patch. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=5006ba4ee4305f3579ab6997b663fce70389a6c5;p=users%2Fbernd%2Fpostgres.git Fix for recent Win32 pg_dump tar temp file patch. Hiroshi Saito --- diff --git a/src/bin/pg_dump/pg_backup_tar.c b/src/bin/pg_dump/pg_backup_tar.c index 3b153adfdc..6b077389a2 100644 --- a/src/bin/pg_dump/pg_backup_tar.c +++ b/src/bin/pg_dump/pg_backup_tar.c @@ -25,6 +25,7 @@ #include "pg_backup_archiver.h" #include "pg_backup_tar.h" +#include #include #include #include @@ -376,7 +377,7 @@ tarOpen(ArchiveHandle *AH, const char *filename, char mode) if (name == NULL) break; fd = open(name, O_RDWR | O_CREAT | O_EXCL | O_BINARY | - O_TEMPORARY, S_IREAD | S_IWRITE); + O_TEMPORARY, S_IRUSR | S_IWUSR); free(name); if (fd != -1) /* created a file */