This commit is contained in:
nora 2024-08-30 22:50:30 +02:00
parent 2ad87d3a14
commit e36f416c54
2 changed files with 8 additions and 6 deletions

View file

@ -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]

View file

@ -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;