From 6260d256711487b29fd2382743cb37766ecfe45f Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 30 Jun 2010 23:28:46 +0100 Subject: [PATCH] dsync mirror: If arg has '/', assume it's a script. --HG-- branch : HEAD --- src/dsync/dsync.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/dsync/dsync.c b/src/dsync/dsync.c index 5f74e95031..4fe18c5dc1 100644 --- a/src/dsync/dsync.c +++ b/src/dsync/dsync.c @@ -87,9 +87,10 @@ static bool mirror_get_remote_cmd(char **argv, const char *const **cmd_args_r) } } - if (strchr(argv[0], ' ') != NULL) { - /* the whole command is in one string. this is mainly for - backwards compatibility. */ + if (strchr(argv[0], ' ') != NULL || strchr(argv[0], '/') != NULL) { + /* a) the whole command is in one string. this is mainly for + backwards compatibility. + b) script/path */ argv = p_strsplit(pool_datastack_create(), argv[0], " "); return mirror_get_remote_cmd(argv, cmd_args_r); } -- 2.47.3