|
16 | 16 | * |
17 | 17 | * |
18 | 18 | * IDENTIFICATION |
19 | | - *$PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.53 2006/06/2701:16:58 momjian Exp $ |
| 19 | + *$PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.54 2006/06/2702:56:41 momjian Exp $ |
20 | 20 | * |
21 | 21 | *------------------------------------------------------------------------- |
22 | 22 | */ |
|
25 | 25 | #include"pg_backup_archiver.h" |
26 | 26 | #include"pg_backup_tar.h" |
27 | 27 |
|
| 28 | +#include<sys/stat.h> |
28 | 29 | #include<ctype.h> |
29 | 30 | #include<limits.h> |
30 | 31 | #include<unistd.h> |
@@ -376,7 +377,7 @@ tarOpen(ArchiveHandle *AH, const char *filename, char mode) |
376 | 377 | if (name==NULL) |
377 | 378 | break; |
378 | 379 | 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); |
380 | 381 | free(name); |
381 | 382 |
|
382 | 383 | if (fd!=-1)/* created a file */ |
|