From ce6d50b99420a4e0994cf9be285a92eb8c4bac0e Mon Sep 17 00:00:00 2001 From: Brad Morgan Date: Thu, 9 May 2013 17:37:42 -0400 Subject: [PATCH] Changed to use libssh2_channel_exec --- src/transports/ssh.c | 9 +++------ 1 file 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)