From f98df1d9b731f3a096c8b7762acf68f0ffc8cb78 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 9 Sep 1998 05:51:08 +0000 Subject: [PATCH] wanr people who use path names to rsync :: --- clientserver.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.34.1