From be8a3845c7d76d7da66ad278618ff29d0b81903c Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Wed, 21 May 2014 20:49:22 +0530 Subject: gsyncd : Use --remote-host option during cli invocation Required for unprivileged geo-replication sessions to execute glusterd commands (which are however restricted). Change-Id: Ib83b81defa061717f4465ffa665450d0f5d3d20d BUG: 1077452 Signed-off-by: Venky Shankar Reviewed-on: http://review.gluster.org/7833 Reviewed-by: Kotresh HR Tested-by: Gluster Build System --- geo-replication/src/gsyncd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'geo-replication/src/gsyncd.c') diff --git a/geo-replication/src/gsyncd.c b/geo-replication/src/gsyncd.c index 21864db4af2..11599760457 100644 --- a/geo-replication/src/gsyncd.c +++ b/geo-replication/src/gsyncd.c @@ -116,6 +116,7 @@ invoke_gsyncd (int argc, char **argv) /* in restricted mode we forcibly use the system-wide config */ runinit (&runner); runner_add_args (&runner, SBIN_DIR"/gluster", + "--remote-host=localhost", "--log-file=-", "system::", "getwd", NULL); runner_redir (&runner, STDOUT_FILENO, RUN_PIPE); -- cgit