diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-10-25 01:33:17 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-10-25 01:33:17 +0000 |
commit | fc5c577e34a53af8104415bae63d315fee2b125a (patch) | |
tree | 8c997ff545de26936a0d532acbaac8ff7a6f2fe8 /src/bin/pg_dump/pg_backup_files.c | |
parent | 2908a838ac2cf8cdccaa115249f8399eef8a731e (diff) | |
download | postgresql-fc5c577e34a53af8104415bae63d315fee2b125a.tar.gz postgresql-fc5c577e34a53af8104415bae63d315fee2b125a.zip |
Allow fseeko in pg_dump only if fseeko() will work for all supported file
sizes.
Diffstat (limited to 'src/bin/pg_dump/pg_backup_files.c')
-rw-r--r-- | src/bin/pg_dump/pg_backup_files.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_dump/pg_backup_files.c b/src/bin/pg_dump/pg_backup_files.c index 1bcb16ca002..3a4914828a5 100644 --- a/src/bin/pg_dump/pg_backup_files.c +++ b/src/bin/pg_dump/pg_backup_files.c @@ -20,7 +20,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_files.c,v 1.20 2002/10/22 19:15:23 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_files.c,v 1.21 2002/10/25 01:33:17 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -129,7 +129,7 @@ InitArchiveFmt_Files(ArchiveHandle *AH) if (AH->FH == NULL) die_horribly(NULL, modulename, "could not open output file: %s\n", strerror(errno)); - ctx->hasSeek = (fseeko(AH->FH, 0, SEEK_CUR) == 0); + ctx->hasSeek = checkSeek(AH->FH); if (AH->compression < 0 || AH->compression > 9) AH->compression = Z_DEFAULT_COMPRESSION; @@ -147,7 +147,7 @@ InitArchiveFmt_Files(ArchiveHandle *AH) if (AH->FH == NULL) die_horribly(NULL, modulename, "could not open input file: %s\n", strerror(errno)); - ctx->hasSeek = (fseeko(AH->FH, 0, SEEK_CUR) == 0); + ctx->hasSeek = checkSeek(AH->FH); ReadHead(AH); ReadToc(AH); |