X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/62a6b8df72d18f0b13462ee7ac33f9a8a46ef0b5..ec8637f3679b891041c798400774141024e24a4e:/loadparm.c diff --git a/loadparm.c b/loadparm.c index 0915000d..010e089a 100644 --- a/loadparm.c +++ b/loadparm.c @@ -784,6 +784,11 @@ static BOOL do_section(char *sectionname) return(True); } + if (strchr(sectionname, '/') != NULL) { + rprintf(FLOG, "Warning: invalid section name in configuration file: %s\n", sectionname); + return False; + } + /* if we have a current service, tidy it up before moving on */ bRetval = True;