Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitba4b9c0

Browse files
committed
Fix for recent Win32 pg_dump tar temp file patch.
Hiroshi Saito
1 parent3f50ba2 commitba4b9c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/bin/pg_dump/pg_backup_tar.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
*
1818
* 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 $
2020
*
2121
*-------------------------------------------------------------------------
2222
*/
@@ -25,6 +25,7 @@
2525
#include"pg_backup_archiver.h"
2626
#include"pg_backup_tar.h"
2727

28+
#include<sys/stat.h>
2829
#include<ctype.h>
2930
#include<limits.h>
3031
#include<unistd.h>
@@ -376,7 +377,7 @@ tarOpen(ArchiveHandle *AH, const char *filename, char mode)
376377
if (name==NULL)
377378
break;
378379
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);
380381
free(name);
381382

382383
if (fd!=-1)/* created a file */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp