- add_exclude_file(&exclude_list, arg,
- XFLG_FATAL_ERRORS | XFLG_DEF_INCLUDE);
+ if (sanitize_paths)
+ arg = sanitize_path(NULL, arg, NULL, 0);
+ if (server_exclude_list.head) {
+ char *cp = (char *)arg;
+ clean_fname(cp, 1);
+ if (check_exclude(&server_exclude_list, cp, 0) < 0)
+ goto options_rejected;
+ }
+ add_exclude_file(&exclude_list, arg, XFLG_FATAL_ERRORS
+ | (opt == OPT_INCLUDE_FROM
+ ? XFLG_DEF_INCLUDE : 0));