diff options
| author | Artyom V. Poptsov <poptsov.artyom@gmail.com> | 2016-02-21 15:34:17 +0300 |
|---|---|---|
| committer | Artyom V. Poptsov <poptsov.artyom@gmail.com> | 2016-02-21 15:34:17 +0300 |
| commit | 71a6e1e7df02e4abb6dfa498004dfc14f8070cc0 (patch) | |
| tree | 71daaca7d935c237bce80228e3c1778e35a3d635 /modules/ssh | |
| parent | libguile-ssh: Add missed "threads.h" include (diff) | |
| download | guile-ssh-71a6e1e7df02e4abb6dfa498004dfc14f8070cc0.tar.gz | |
popen.scm (open-remote-pipe): Bugfix: Don't request PTY
When PTY is requested, OpenSSH server merges stderr stream with stdout and the
Guile-SSH channel reads all the output as stdout even if the executed command
is failed. This patch fixes that.
Reported by: David Thompson in <https://github.com/artyom-poptsov/guile-ssh/issues/2>
* modules/ssh/popen.scm (open-remote-pipe): Bugfix: Don't request PTY.
* AUTHORS, NEWS, THANKS: Update.
Diffstat (limited to 'modules/ssh')
| -rw-r--r-- | modules/ssh/popen.scm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/ssh/popen.scm b/modules/ssh/popen.scm index 12ef4ae..72e31ff 100644 --- a/modules/ssh/popen.scm +++ b/modules/ssh/popen.scm @@ -51,7 +51,6 @@ Returns newly created channel port with the specified MODE." (unless channel (throw 'guile-ssh-error "Could not create a channel" session command mode)) (channel-open-session channel) - (channel-request-pty channel) (channel-request-exec channel command) channel)) |
