X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/582831a44735b7abbb83aca5287ef988294b0b71..e2c1e482e004b8f992156bf436d4bf34cee1ee1d:/params.c diff --git a/params.c b/params.c index aa79953f..0fbd9863 100644 --- a/params.c +++ b/params.c @@ -75,6 +75,7 @@ #include "rsync.h" #include "ifuncs.h" +#include "itypes.h" /* -------------------------------------------------------------------------- ** * Constants... @@ -427,6 +428,7 @@ static int name_cmp(const void *n1, const void *n2) static int include_config(char *include, int manage_globals) { STRUCT_STAT sb; + char *match = manage_globals ? "*.conf" : "*.inc"; int ret; if (do_stat(include, &sb) < 0) { @@ -456,7 +458,7 @@ static int include_config(char *include, int manage_globals) while ((di = readdir(d)) != NULL) { char *dname = d_name(di); - if (!wildmatch("*.conf", dname)) + if (!wildmatch(match, dname)) continue; bpp = EXPAND_ITEM_LIST(&conf_list, char *, 32); pathjoin(buf, sizeof buf, include, dname);