Fixed a glitch when using -s with a remote-shell daemon.
authorWayne Davison <wayned@samba.org>
Sat, 11 Oct 2008 18:11:10 +0000 (11:11 -0700)
committerWayne Davison <wayned@samba.org>
Sat, 11 Oct 2008 18:11:10 +0000 (11:11 -0700)
main.c

diff --git a/main.c b/main.c
index 2a44cf8..f825b6c 100644 (file)
--- a/main.c
+++ b/main.c
@@ -528,7 +528,7 @@ static pid_t do_cmd(char *cmd, char *machine, char *user, char **remote_argv, in
 #ifdef ICONV_CONST
                setup_iconv();
 #endif
-               if (protect_args)
+               if (protect_args && !daemon_over_rsh)
                        send_protected_args(*f_out_p, args);
        }