Commit ba4b9c0d authored by Bruce Momjian's avatar Bruce Momjian

Fix for recent Win32 pg_dump tar temp file patch.

Hiroshi Saito
parent 3f50ba27
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.53 2006/06/27 01:16:58 momjian Exp $ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.54 2006/06/27 02:56:41 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "pg_backup_archiver.h" #include "pg_backup_archiver.h"
#include "pg_backup_tar.h" #include "pg_backup_tar.h"
#include <sys/stat.h>
#include <ctype.h> #include <ctype.h>
#include <limits.h> #include <limits.h>
#include <unistd.h> #include <unistd.h>
...@@ -376,7 +377,7 @@ tarOpen(ArchiveHandle *AH, const char *filename, char mode) ...@@ -376,7 +377,7 @@ tarOpen(ArchiveHandle *AH, const char *filename, char mode)
if (name == NULL) if (name == NULL)
break; break;
fd = open(name, O_RDWR | O_CREAT | O_EXCL | O_BINARY | 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); free(name);
if (fd != -1) /* created a file */ if (fd != -1) /* created a file */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment