Skip to content

Commit

Permalink
native-systemd-shim: pass arguments correctly (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
K900 authored Nov 25, 2022
1 parent 08e2cf0 commit de5dd82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/native-systemd-shim/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ fn real_main() -> anyhow::Result<()> {
// if things go right, we will never return from here
Err(
Command::new("/nix/var/nix/profiles/system/systemd/lib/systemd/systemd")
.args(env::args_os())
.arg0(env::args_os().next().expect("arg0 missing"))
.args(env::args_os().skip(1))
.exec()
.into(),
)
Expand Down

0 comments on commit de5dd82

Please sign in to comment.