X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fcapture_common.c;fp=src%2Fcapture_common.c;h=caf9529c3b70b5b85f7313ab867241010f289984;hb=f7c0992ff2b5c7f9c178262d5ede6910b039eba8;hp=a0d56bfd4b8f1bd1564ef5931e3709f9a4b2556c;hpb=bfd69010caead41c39ab50e306b1c21f8e26ba12;p=wimlib diff --git a/src/capture_common.c b/src/capture_common.c index a0d56bfd..caf9529c 100644 --- a/src/capture_common.c +++ b/src/capture_common.c @@ -178,8 +178,15 @@ read_capture_config(const tchar *config_file, const void *buf, /* [PrepopulateList] is used for apply, not capture. But since we do * understand it, recognize it, thereby avoiding the unrecognized - * section warning, but discard the resulting strings. */ + * section warning, but discard the resulting strings. + * + * We currently ignore [CompressionExclusionList] and + * [CompressionFolderList]. This is a known issue that doesn't seem to + * have any real consequences, so don't issue warnings about not + * recognizing those sections. */ STRING_SET(prepopulate_pats); + STRING_SET(compression_exclusion_pats); + STRING_SET(compression_folder_pats); struct text_file_section sections[] = { {T("ExclusionList"), @@ -188,6 +195,10 @@ read_capture_config(const tchar *config_file, const void *buf, &config->exclusion_exception_pats}, {T("PrepopulateList"), &prepopulate_pats}, + {T("CompressionExclusionList"), + &compression_exclusion_pats}, + {T("CompressionFolderList"), + &compression_folder_pats}, }; void *mem; @@ -198,6 +209,8 @@ read_capture_config(const tchar *config_file, const void *buf, return ret; FREE(prepopulate_pats.strings); + FREE(compression_exclusion_pats.strings); + FREE(compression_folder_pats.strings); config->buf = mem; return 0;