summaryrefslogtreecommitdiffhomepage
path: root/scp.c
diff options
context:
space:
mode:
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/scp.c b/scp.c
index 9e1ca17..1d788c9 100644
--- a/scp.c
+++ b/scp.c
@@ -200,7 +200,7 @@ do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout, int argc)
#endif /* __uClinux__ */
/* Fork a child to execute the command on the remote host using ssh. */
-#ifndef __uClinux__
+#ifdef __uClinux__
do_cmd_pid = vfork();
#else
do_cmd_pid = fork();
@@ -308,10 +308,6 @@ main(int argc, char **argv)
memset(&args, '\0', sizeof(args));
args.list = NULL;
addargs(&args, "%s", ssh_program);
- addargs(&args, "-x");
- addargs(&args, "-oForwardAgent no");
- addargs(&args, "-oPermitLocalCommand no");
- addargs(&args, "-oClearAllForwardings yes");
fflag = tflag = 0;
while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q1246S:o:F:")) != -1)