mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-01-14 08:25:05 +01:00
sftp
This commit is contained in:
parent
2ad87d3a14
commit
e36f416c54
2 changed files with 8 additions and 6 deletions
|
|
@ -2,6 +2,8 @@ log_level = "info"
|
|||
|
||||
|
||||
[subsystem.sftp]
|
||||
# can also:
|
||||
# path = "/nix/store/03fwrvyf4gw1gps9nmyvrxl17i7287ln-openssh-9.7p1/libexec/sftp-server"
|
||||
path = "../../target/debug/cluelesshd-sftp-server"
|
||||
|
||||
[net]
|
||||
|
|
|
|||
|
|
@ -356,12 +356,12 @@ impl Server {
|
|||
Some(child) => {
|
||||
let result = child.wait().await;
|
||||
|
||||
self.respond::<WaitResponse>(
|
||||
result
|
||||
.map(|status| status.code())
|
||||
.map_err(|err| err.to_string()),
|
||||
)
|
||||
.await?;
|
||||
let result = result
|
||||
.map(|status| status.code())
|
||||
.map_err(|err| err.to_string());
|
||||
debug!(?result, "Child process exited");
|
||||
|
||||
self.respond::<WaitResponse>(result).await?;
|
||||
|
||||
// implicitly drop stdio
|
||||
self.shell_process = None;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue