- if(strncmp(s-1, "exclude-file=", 13) == 0) {
- options->exclude_file =
- append_sl(options->exclude_file, s+12);
- }
- if(strncmp(s-1, "exclude-list=", 13) == 0) {
- options->exclude_list =
- append_sl(options->exclude_list, s+12);
- }
-
- skip_non_whitespace(s, ch);
- if(ch) {
- err_extra = "extra text at end";
- goto err; /* should have gotten to end */
+ while (ch != '\0') {
+ if(strncmp(s-1, "exclude-file=", 13) == 0) {
+ qlist = unquote_string(s+12);
+ options->exclude_file =
+ append_sl(options->exclude_file, qlist);
+ amfree(qlist);
+ } else if(strncmp(s-1, "exclude-list=", 13) == 0) {
+ options->exclude_list =
+ append_sl(options->exclude_list, qlist);
+ qlist = unquote_string(s+12);
+ amfree(qlist);
+ } else if(strncmp(s-1, "include-file=", 13) == 0) {
+ options->include_file =
+ append_sl(options->include_file, qlist);
+ qlist = unquote_string(s+12);
+ amfree(qlist);
+ } else if(strncmp(s-1, "include-list=", 13) == 0) {
+ options->include_list =
+ append_sl(options->include_list, qlist);
+ qlist = unquote_string(s+12);
+ amfree(qlist);
+ } else {
+ err_extra = vstralloc("Invalid parameter (",
+ s-1, ")", NULL);
+ goto err; /* should have gotten to end */
+ }
+ skip_quoted_string(s, ch);
+ skip_whitespace(s, ch); /* find the inclusion list */
+ amfree(qlist);