@@ -259,7 +259,7 @@ ReceiveFileList(parray* files, PGconn *conn, PGresult *res, int rownum)
259259/* First part of header is zero terminated filename */
260260snprintf (filename ,sizeof (filename ),"%s" ,copybuf );
261261
262- pgfile = pgFileInit (filename );
262+ pgfile = pgFileInit (filename , filename );
263263pgfile -> size = current_len_left ;
264264pgfile -> mode |=filemode ;
265265
@@ -2381,7 +2381,8 @@ pg_stop_backup(pgBackup *backup)
23812381 */
23822382if (backup_files_list )
23832383{
2384- file = pgFileNew (backup_label , true,0 ,FIO_BACKUP_HOST );
2384+ file = pgFileNew (backup_label ,backup_label , true,0 ,
2385+ FIO_BACKUP_HOST );
23852386calc_file_checksum (file ,FIO_BACKUP_HOST );
23862387free (file -> path );
23872388file -> path = strdup (PG_BACKUP_LABEL_FILE );
@@ -2424,7 +2425,8 @@ pg_stop_backup(pgBackup *backup)
24242425
24252426if (backup_files_list )
24262427{
2427- file = pgFileNew (tablespace_map , true,0 ,FIO_BACKUP_HOST );
2428+ file = pgFileNew (tablespace_map ,tablespace_map , true,0 ,
2429+ FIO_BACKUP_HOST );
24282430if (S_ISREG (file -> mode ))
24292431calc_file_checksum (file ,FIO_BACKUP_HOST );
24302432free (file -> path );
@@ -2826,7 +2828,6 @@ backup_files(void *arg)
28262828file );
28272829else
28282830{
2829- const char * src ;
28302831const char * dst ;
28312832bool skip = false;
28322833char external_dst [MAXPGPATH ];
@@ -2846,16 +2847,12 @@ backup_files(void *arg)
28462847makeExternalDirPathByNum (external_dst ,
28472848arguments -> external_prefix ,
28482849file -> external_dir_num );
2849- src = external_path ;
28502850dst = external_dst ;
28512851}
28522852else
2853- {
2854- src = arguments -> from_root ;
28552853dst = arguments -> to_root ;
2856- }
28572854if (skip ||
2858- !copy_file (src , FIO_DB_HOST ,dst ,FIO_BACKUP_HOST ,file ))
2855+ !copy_file (FIO_DB_HOST ,dst ,FIO_BACKUP_HOST ,file ))
28592856{
28602857/* disappeared file not to be confused with 'not changed' */
28612858if (file -> write_size != FILE_NOT_FOUND )