- while ((inc = get_next_included_file(ff, inc))) {
- file = inc->fname;
- strcpy(ff->VerifyOpts, inc->VerifyOpts); /* Copy options for this file */
- Dmsg1(50, "find_files: file=%s\n", file);
- if (!file_is_excluded(ff, file)) {
- if (!find_one_file(ff, callback, his_pkt, file, (dev_t)-1, 1)) {
+ while (!job_canceled(jcr) && (inc = get_next_included_file(ff, inc))) {
+ /* Copy options for this file */
+ bstrncpy(ff->VerifyOpts, inc->VerifyOpts, sizeof(ff->VerifyOpts));
+ Dmsg1(50, "find_files: file=%s\n", inc->fname);
+ if (!file_is_excluded(ff, inc->fname)) {
+ if (!find_one_file(jcr, ff, callback, his_pkt, inc->fname,
+ (dev_t)-1, 1)) {