Changed to use libssh2_channel_exec

This commit is contained in:
Brad Morgan 2013-05-09 17:37:42 -04:00
parent 05f581311b
commit ce6d50b994

View File

@ -79,12 +79,9 @@ static int send_command(ssh_stream *s)
if (error < 0)
goto cleanup;
error = libssh2_channel_process_startup(
error = libssh2_channel_exec(
s->channel,
"exec",
(uint32_t)sizeof("exec") - 1,
request.ptr,
request.size
request.ptr
);
if (0 != error)