Skip to content

Commit

Permalink
native-systemd-shim: pass arguments correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
K900 committed Nov 25, 2022
1 parent bab9aa4 commit 1fbe024
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 1fbe024

Please sign in to comment.