*
*
* 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 $
*
*-------------------------------------------------------------------------
*/
#include "pg_backup_archiver.h"
#include "pg_backup_tar.h"
+#include <sys/stat.h>
#include <ctype.h>
#include <limits.h>
#include <unistd.h>
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 */