mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 20:29:27 +00:00
Changed to use libssh2_channel_exec
This commit is contained in:
parent
05f581311b
commit
ce6d50b994
@ -79,12 +79,9 @@ static int send_command(ssh_stream *s)
|
|||||||
if (error < 0)
|
if (error < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
error = libssh2_channel_process_startup(
|
error = libssh2_channel_exec(
|
||||||
s->channel,
|
s->channel,
|
||||||
"exec",
|
request.ptr
|
||||||
(uint32_t)sizeof("exec") - 1,
|
|
||||||
request.ptr,
|
|
||||||
request.size
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (0 != error)
|
if (0 != error)
|
||||||
|
Loading…
Reference in New Issue
Block a user