]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync mirror: If arg has '/', assume it's a script.
authorTimo Sirainen <tss@iki.fi>
Wed, 30 Jun 2010 22:28:46 +0000 (23:28 +0100)
committerTimo Sirainen <tss@iki.fi>
Wed, 30 Jun 2010 22:28:46 +0000 (23:28 +0100)
--HG--
branch : HEAD

src/dsync/dsync.c

index 5f74e950318b19988f1c10e8b7c8723e5b44b80a..4fe18c5dc1c5b1afabd9aaddbb191c0fadb08f93 100644 (file)
@@ -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);
        }