From: Wayne Davison Date: Sat, 3 Jul 2010 15:54:40 +0000 (-0700) Subject: If a module has no path setting, return an error. X-Git-Tag: v3.0.8pre1~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24a743b5650ad27c2db4a6323f714e072cdc595e;p=thirdparty%2Frsync.git If a module has no path setting, return an error. --- diff --git a/clientserver.c b/clientserver.c index 806a6e3c..0d476887 100644 --- a/clientserver.c +++ b/clientserver.c @@ -509,6 +509,11 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host) * supplementary groups. */ 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... */