From: Timo Sirainen Date: Wed, 30 Jun 2010 22:28:46 +0000 (+0100) Subject: dsync mirror: If arg has '/', assume it's a script. X-Git-Tag: 2.0.rc1~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6260d256711487b29fd2382743cb37766ecfe45f;p=thirdparty%2Fdovecot%2Fcore.git dsync mirror: If arg has '/', assume it's a script. --HG-- branch : HEAD --- 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); }