Skip to content

Commit 68c4e5d

Browse files
committed
Fix mfd_exec()
1 parent 348239d commit 68c4e5d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cargo-features = ["panic-immediate-abort"]
22

33
[package]
44
name = "uruntime"
5-
version = "0.5.5"
5+
version = "0.5.6"
66
readme = "README.md"
77
license = "MIT"
88
repository = "https://github.com/VHSgunzo/uruntime"

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ fn mfd_exec(exec_name: &str, exec_bytes: &[u8], exec_args: Vec<String>) {
208208

209209
let err = MemFdExecutable::new(exec_name, exec_bytes)
210210
.args(exec_args)
211+
.envs(env::vars_os())
211212
.exec(Stdio::inherit());
212213
eprintln!("Failed to execute {exec_name}: {err}");
213214
exit(1)

0 commit comments

Comments
 (0)