20
20
*
21
21
*
22
22
* IDENTIFICATION
23
- *$Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_files.c,v 1.20 2002/10/22 19:15:23 momjian Exp $
23
+ *$Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_files.c,v 1.21 2002/10/25 01:33:17 momjian Exp $
24
24
*
25
25
*-------------------------------------------------------------------------
26
26
*/
@@ -129,7 +129,7 @@ InitArchiveFmt_Files(ArchiveHandle *AH)
129
129
if (AH -> FH == NULL )
130
130
die_horribly (NULL ,modulename ,"could not open output file: %s\n" ,strerror (errno ));
131
131
132
- ctx -> hasSeek = ( fseeko ( AH -> FH , 0 , SEEK_CUR ) == 0 );
132
+ ctx -> hasSeek = checkSeek ( AH -> FH );
133
133
134
134
if (AH -> compression < 0 || AH -> compression > 9 )
135
135
AH -> compression = Z_DEFAULT_COMPRESSION ;
@@ -147,7 +147,7 @@ InitArchiveFmt_Files(ArchiveHandle *AH)
147
147
if (AH -> FH == NULL )
148
148
die_horribly (NULL ,modulename ,"could not open input file: %s\n" ,strerror (errno ));
149
149
150
- ctx -> hasSeek = ( fseeko ( AH -> FH , 0 , SEEK_CUR ) == 0 );
150
+ ctx -> hasSeek = checkSeek ( AH -> FH );
151
151
152
152
ReadHead (AH );
153
153
ReadToc (AH );