diff options
author | Zdenek Kotala <Zdenek.Kotala@Sun.COM> | 2009-10-26 19:32:06 +0100 |
---|---|---|
committer | Zdenek Kotala <Zdenek.Kotala@Sun.COM> | 2009-10-26 19:32:06 +0100 |
commit | d92fc07239af943d62e4e67791879707ec89e7d3 (patch) | |
tree | ebabfe52246a865dbb2e1197d129cfb9e04993d5 /usr/src/cmd/ssh/sftp/sftp.c | |
parent | 15cf376d144661c5c48ea6f62083a36d18d430fd (diff) | |
download | illumos-gate-d92fc07239af943d62e4e67791879707ec89e7d3.tar.gz |
6882255 sftp connection fails when .bashrc generates output on stderr
6886656 unlimited window size causes problems with limited buffer sizes
6894519 USE_PIPES is not used on Solaris and should be removed
Diffstat (limited to 'usr/src/cmd/ssh/sftp/sftp.c')
-rw-r--r-- | usr/src/cmd/ssh/sftp/sftp.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/usr/src/cmd/ssh/sftp/sftp.c b/usr/src/cmd/ssh/sftp/sftp.c index 45537d4ea8..9b5caac074 100644 --- a/usr/src/cmd/ssh/sftp/sftp.c +++ b/usr/src/cmd/ssh/sftp/sftp.c @@ -1473,23 +1473,12 @@ connect_to_server(char *path, char **args, int *in, int *out) { int c_in, c_out; -#ifdef USE_PIPES - int pin[2], pout[2]; - - if ((pipe(pin) == -1) || (pipe(pout) == -1)) - fatal("pipe: %s", strerror(errno)); - *in = pin[0]; - *out = pout[1]; - c_in = pout[0]; - c_out = pin[1]; -#else /* USE_PIPES */ int inout[2]; if (socketpair(AF_UNIX, SOCK_STREAM, 0, inout) == -1) fatal("socketpair: %s", strerror(errno)); *in = *out = inout[0]; c_in = c_out = inout[1]; -#endif /* USE_PIPES */ if ((sshpid = fork()) == -1) fatal("fork: %s", strerror(errno)); @@ -1684,10 +1673,8 @@ main(int argc, char **argv) err = interactive_loop(in, out, file1, file2); -#if !defined(USE_PIPES) shutdown(in, SHUT_RDWR); shutdown(out, SHUT_RDWR); -#endif close(in); close(out); |