diff options
Diffstat (limited to 'archival/tar.c')
-rw-r--r-- | archival/tar.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/archival/tar.c b/archival/tar.c index 4f2564813..93184cc2a 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -491,10 +491,11 @@ static int exclude_file(const llist_t *excluded_files, const char *file) | |||
491 | # define exclude_file(excluded_files, file) 0 | 491 | # define exclude_file(excluded_files, file) 0 |
492 | # endif | 492 | # endif |
493 | 493 | ||
494 | static int FAST_FUNC writeFileToTarball(const char *fileName, struct stat *statbuf, | 494 | static int FAST_FUNC writeFileToTarball(struct recursive_state *state, |
495 | void *userData, int depth UNUSED_PARAM) | 495 | const char *fileName, |
496 | struct stat *statbuf) | ||
496 | { | 497 | { |
497 | struct TarBallInfo *tbInfo = (struct TarBallInfo *) userData; | 498 | struct TarBallInfo *tbInfo = (struct TarBallInfo *) state->userData; |
498 | const char *header_name; | 499 | const char *header_name; |
499 | int inputFileFd = -1; | 500 | int inputFileFd = -1; |
500 | 501 | ||
@@ -700,7 +701,7 @@ static NOINLINE int writeTarFile( | |||
700 | /* Read the directory/files and iterate over them one at a time */ | 701 | /* Read the directory/files and iterate over them one at a time */ |
701 | while (filelist) { | 702 | while (filelist) { |
702 | if (!recursive_action(filelist->data, recurseFlags, | 703 | if (!recursive_action(filelist->data, recurseFlags, |
703 | writeFileToTarball, writeFileToTarball, tbInfo, 0) | 704 | writeFileToTarball, writeFileToTarball, tbInfo) |
704 | ) { | 705 | ) { |
705 | errorFlag = TRUE; | 706 | errorFlag = TRUE; |
706 | } | 707 | } |