diff --git a/Cargo.toml b/Cargo.toml index aa42594b..d3b27e2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ lazy_static = "1.3" libc = "0.2" log = "0.4" native-tls = "0.2" -nix = "0.15" +nix = "0.16" openssl = "0.10" pam = "0.7" pam-sys = "0.5" diff --git a/src/tools/daemon.rs b/src/tools/daemon.rs index 0eaf70e8..7f367fe7 100644 --- a/src/tools/daemon.rs +++ b/src/tools/daemon.rs @@ -165,6 +165,7 @@ impl Reloader { fn do_exec(self, exe: CString, args: Vec) -> Result<(), Error> { self.pre_exec()?; nix::unistd::setsid()?; + let args: Vec<&std::ffi::CStr> = args.iter().map(|s| s.as_ref()).collect(); nix::unistd::execvp(&exe, &args)?; Ok(()) }