diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-06-27 02:56:46 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-06-27 02:56:46 +0000 |
commit | cc6dbbeefcd1af31775f52ed23f8d0f34f932e2e (patch) | |
tree | 3f70681eeac127be3fe40f5bc6129cf8dd66e752 | |
parent | 837a7df8dda9dab946cb2ed40d6306651baead32 (diff) | |
download | postgresql-cc6dbbeefcd1af31775f52ed23f8d0f34f932e2e.tar.gz postgresql-cc6dbbeefcd1af31775f52ed23f8d0f34f932e2e.zip |
Fix for recent Win32 pg_dump tar temp file patch.
Hiroshi Saito
-rw-r--r-- | src/bin/pg_dump/pg_backup_tar.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/pg_dump/pg_backup_tar.c b/src/bin/pg_dump/pg_backup_tar.c index 8c8eabdfba2..fbbe00b6af5 100644 --- a/src/bin/pg_dump/pg_backup_tar.c +++ b/src/bin/pg_dump/pg_backup_tar.c @@ -16,7 +16,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.49.2.1 2006/06/27 01:17:05 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.49.2.2 2006/06/27 02:56:46 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -25,6 +25,7 @@ #include "pg_backup_archiver.h" #include "pg_backup_tar.h" +#include <sys/stat.h> #include <ctype.h> #include <limits.h> #include <unistd.h> @@ -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 */ |