Displaying 2 results from an estimated 2 matches for "do_local_cmd".
2012 Aug 19
3
Bug Report and patch fix
Hi
I found this issue in scp in the following blog link
http://oldpapyrus.wordpress.com/2012/08/08/scp-a-funny-error/
when the wrong local file name is specified in local to remote transfer
mode, scp first tries to establish the connection rather than to check
first whether the file is proper or not.
However I could not find a reported bug for this. I am attaching the fix as
patch for this
2011 Aug 17
1
openssh-unix-dev Digest, Vol 100, Issue 3
...' || *(argv[argc-1]) == '-')
> + addargs(&alist, "--");
> addargs(&alist, "%s", argv[i]);
> addargs(&alist, "%s", argv[argc-1]);
> if (do_local_cmd(&alist))
> @@ -684,7 +688,8 @@ tolocal(int argc, char **argv)
> suser = pwd->pw_name;
> }
> host = cleanhostname(host);
> - xasprintf(&bp, "%s -f -- %s", cmd, src);
> + xa...