From: Andrew Tridgell Date: Wed, 9 Sep 1998 05:51:08 +0000 (+0000) Subject: wanr people who use path names to rsync :: X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/f98df1d9b731f3a096c8b7762acf68f0ffc8cb78 wanr people who use path names to rsync :: --- 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;