diff options
| author | Brad Morgan <brad@dmgctrl.com> | 2013-05-09 17:37:42 -0400 |
|---|---|---|
| committer | Brad Morgan <brad@dmgctrl.com> | 2013-05-09 17:37:42 -0400 |
| commit | ce6d50b99420a4e0994cf9be285a92eb8c4bac0e (patch) | |
| tree | a9dca11e3ebf9e0f50167b121813c1d4ced02248 /src/transports/ssh.c | |
| parent | 05f581311b1a3d8003823a57e87482847827ae7d (diff) | |
| download | libgit2-ce6d50b99420a4e0994cf9be285a92eb8c4bac0e.tar.gz | |
Changed to use libssh2_channel_exec
Diffstat (limited to 'src/transports/ssh.c')
| -rw-r--r-- | src/transports/ssh.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/transports/ssh.c b/src/transports/ssh.c index 31625cb3d..f11b5fb67 100644 --- a/src/transports/ssh.c +++ b/src/transports/ssh.c @@ -79,12 +79,9 @@ static int send_command(ssh_stream *s) if (error < 0) goto cleanup; - error = libssh2_channel_process_startup( - s->channel, - "exec", - (uint32_t)sizeof("exec") - 1, - request.ptr, - request.size + error = libssh2_channel_exec( + s->channel, + request.ptr ); if (0 != error) |
