dovecot-2.0: dsync mirror: If arg has '/', assume it's a script.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jul 1 01:28:49 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/26faf8ae5024
changeset: 11668:26faf8ae5024
user: Timo Sirainen <tss at iki.fi>
date: Wed Jun 30 23:28:46 2010 +0100
description:
dsync mirror: If arg has '/', assume it's a script.
diffstat:
src/dsync/dsync.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (17 lines):
diff -r 78b4cf49d3cd -r 26faf8ae5024 src/dsync/dsync.c
--- a/src/dsync/dsync.c Wed Jun 30 22:13:20 2010 +0100
+++ b/src/dsync/dsync.c Wed Jun 30 23:28:46 2010 +0100
@@ -87,9 +87,10 @@
}
}
- 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);
}
More information about the dovecot-cvs
mailing list