Commit afccb3d3 authored by Wayne Davison's avatar Wayne Davison

If a module has no path setting, return an error.

parent 0d78a278
......@@ -613,6 +613,11 @@ static int rsync_module(int f_in, int f_out, int i, const char *addr, const char
}
module_dir = lp_path(i);
if (*module_dir == '\0') {
rprintf(FLOG, "No path specified for module %s\n", name);
io_printf(f_out, "@ERROR: no path setting.\n");
return -1;
}
if (use_chroot) {
if ((p = strstr(module_dir, "/./")) != NULL) {
*p = '\0'; /* Temporary... */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment