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:14:43 +0000 (11:14 -0700)
main.c

diff --git a/main.c b/main.c
index b9a939b..0f16006 100644 (file)
--- a/main.c
+++ b/main.c
@@ -469,7 +469,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);
        }