X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3eb388185b97920933a1bd17753866815e38539b..f98df1d9b731f3a096c8b7762acf68f0ffc8cb78:/clientserver.c diff --git a/clientserver.c b/clientserver.c index 955be24f..cf10b12f 100644 --- a/clientserver.c +++ b/clientserver.c @@ -36,6 +36,11 @@ int start_socket_client(char *host, char *path, int argc, char *argv[]) extern int am_client; extern int am_sender; + if (*path == '/') { + rprintf(FERROR,"ERROR: The remote path must start with a module name\n"); + return -1; + } + p = strchr(host, '@'); if (p) { user = host;