mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 13:04:42 +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)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user