From 36a830c8cc450399539c66286db7ce45100164be Mon Sep 17 00:00:00 2001 From: Christian Visintin Date: Sat, 21 Mar 2026 10:44:43 +0100 Subject: [PATCH] fix: pass full command string to exec, not just the first word The `Exec` arm of `Command::from_str` only captured the first whitespace-delimited token, silently dropping all arguments. Now passes the entire input string so e.g. `ls -la /tmp` works. --- src/ui/activities/filetransfer/actions/exec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/activities/filetransfer/actions/exec.rs b/src/ui/activities/filetransfer/actions/exec.rs index d0a9bf2..dc9009a 100644 --- a/src/ui/activities/filetransfer/actions/exec.rs +++ b/src/ui/activities/filetransfer/actions/exec.rs @@ -30,7 +30,7 @@ impl FromStr for Command { } } Some("exit") | Some("logout") => Ok(Command::Exit), - Some(cmd) => Ok(Command::Exec(cmd.to_string())), + Some(_) => Ok(Command::Exec(s.to_string())), None => Err("".to_string()), } }