git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e36f5c9
)
If a module has no path setting, return an error.
author
Wayne Davison
<wayned@samba.org>
Sat, 3 Jul 2010 15:54:40 +0000
(08:54 -0700)
committer
Wayne Davison
<wayned@samba.org>
Sat, 3 Jul 2010 15:54:40 +0000
(08:54 -0700)
clientserver.c
patch
|
blob
|
history
diff --git
a/clientserver.c
b/clientserver.c
index 806a6e3c36d67a4e6218d3c4c1a8b8e03efe404e..0d4768879da5f112dc60a654647cfb357b84aca0 100644
(file)
--- 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... */