From 61330e6836b035a71d5aabea3349d734d6788722 Mon Sep 17 00:00:00 2001 From: SFG545 Date: Thu, 11 Jun 2026 13:58:01 -0500 Subject: [PATCH] Adjust stdin handling in target command execution to inherit from the parent process --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 61a60d6..70a3944 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2105,6 +2105,10 @@ fn run_target_command( cmd.env(k, v); } + // `Command::output()` defaults stdin to `/dev/null`. Minimal chroots may + // not have device nodes yet, so inherit stdin while still capturing output. + cmd.stdin(Stdio::inherit()); + let output = cmd.output().map_err(|err| { command_spawn_error(root, &resolved_program, &resolved_program_display, err) })?;