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

Commitee455f8

Browse files
committed
fflush() FILE buffer to descriptor so stat call gets proper size in fseeko.c.
Fixed problem with pg_dump tar backups. Only happens on platforms thatuse our port/fseeko.c, which is currently BSD/OS and NetBSD.
1 parentfd4f3b3 commitee455f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/port/fseeko.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/port/fseeko.c,v 1.13 2003/11/29 19:52:13 pgsql Exp $
11+
* $PostgreSQL: pgsql/src/port/fseeko.c,v 1.14 2004/03/23 05:26:53 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -68,6 +68,7 @@ fseeko(FILE *stream, off_t offset, int whence)
6868
#ifdefbsdi
6969
flockfile(stream);
7070
#endif
71+
fflush(stream);/* force writes to fd for stat() */
7172
if (fstat(fileno(stream),&filestat)!=0)
7273
gotofailure;
7374
floc=filestat.st_size;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp