diff options
author | Wayne Davison <wayned@samba.org> | 2008-01-09 08:59:02 -0800 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2008-01-09 11:41:23 -0800 |
commit | ec8637f3679b891041c798400774141024e24a4e (patch) | |
tree | 9de4ac947d1a9d4b1c0326825303afc754f04195 /loadparm.c | |
parent | 62a6b8df72d18f0b13462ee7ac33f9a8a46ef0b5 (diff) | |
download | rsync-ec8637f3679b891041c798400774141024e24a4e.tar.gz |
Don't allow a slash to be specified in a module name.
Document the module-name limitations in rsyncd.conf.yo.
Diffstat (limited to 'loadparm.c')
-rw-r--r-- | loadparm.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |