projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f0ed73
)
Fix for recent Win32 pg_dump tar temp file patch.
author
Bruce Momjian
<
[email protected]
>
Tue, 27 Jun 2006 02:56:46 +0000
(
02:56
+0000)
committer
Bruce Momjian
<
[email protected]
>
Tue, 27 Jun 2006 02:56:46 +0000
(
02:56
+0000)
Hiroshi Saito
src/bin/pg_dump/pg_backup_tar.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_dump/pg_backup_tar.c
b/src/bin/pg_dump/pg_backup_tar.c
index 3b153adfdc726e2d8a210ba4c23c81597f607df0..6b077389a23ceba6c43444bef9e77b111c440aa2 100644
(file)
--- 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 <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_IR
EAD | S_IWRITE
);
+ O_TEMPORARY, S_IR
USR | S_IWUSR
);
free(name);
if (fd != -1) /* created a file */