mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-01-16 17:35:04 +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]
|
[subsystem.sftp]
|
||||||
|
# can also:
|
||||||
|
# path = "/nix/store/03fwrvyf4gw1gps9nmyvrxl17i7287ln-openssh-9.7p1/libexec/sftp-server"
|
||||||
path = "../../target/debug/cluelesshd-sftp-server"
|
path = "../../target/debug/cluelesshd-sftp-server"
|
||||||
|
|
||||||
[net]
|
[net]
|
||||||
|
|
|
||||||
|
|
@ -356,12 +356,12 @@ impl Server {
|
||||||
Some(child) => {
|
Some(child) => {
|
||||||
let result = child.wait().await;
|
let result = child.wait().await;
|
||||||
|
|
||||||
self.respond::<WaitResponse>(
|
let result = result
|
||||||
result
|
|
||||||
.map(|status| status.code())
|
.map(|status| status.code())
|
||||||
.map_err(|err| err.to_string()),
|
.map_err(|err| err.to_string());
|
||||||
)
|
debug!(?result, "Child process exited");
|
||||||
.await?;
|
|
||||||
|
self.respond::<WaitResponse>(result).await?;
|
||||||
|
|
||||||
// implicitly drop stdio
|
// implicitly drop stdio
|
||||||
self.shell_process = None;
|
self.shell_process = None;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue