Shell-quote vm_name in exe.dev cleanup command

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-09 10:01:18 -04:00
parent 46a110f1c0
commit af668b459b

View file

@ -388,7 +388,7 @@ impl Sandbox for ExeSandbox {
let start = Instant::now();
if let Some(vm_name) = self.vm_name.get() {
let cmd = format!("rm {vm_name}");
let cmd = format!("rm {}", shell_quote(vm_name));
if let Err(e) = self.mgmt_ssh.run_command(&cmd).await {
let err = format!("Failed to destroy exe.dev VM: {e}");
self.emit(SandboxEvent::CleanupFailed {