Adjust stdin handling in target command execution to inherit from the parent process

This commit is contained in:
2026-06-11 13:58:01 -05:00
parent 2652762a9c
commit 61330e6836
+4
View File
@@ -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)
})?;