diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-27 00:29:49 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-27 00:44:28 +0200 |
commit | b1daed6f50a3b63e4166a873fe35deff37b65c21 (patch) | |
tree | 8f8f6703f21543d559719dcac26a18876157a407 /crates/runner/src/tar.rs | |
parent | 6b81db6b8d42445db25ebe095f3233816c29e0d5 (diff) | |
download | rebel-b1daed6f50a3b63e4166a873fe35deff37b65c21.tar rebel-b1daed6f50a3b63e4166a873fe35deff37b65c21.zip |
runner: get rid of spawn argument funnelling
Diffstat (limited to 'crates/runner/src/tar.rs')
-rw-r--r-- | crates/runner/src/tar.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/runner/src/tar.rs b/crates/runner/src/tar.rs index 4bc343f..3fd21e7 100644 --- a/crates/runner/src/tar.rs +++ b/crates/runner/src/tar.rs @@ -55,9 +55,8 @@ pub fn pack<W: Write, P: AsRef<Path>>(archive: &mut W, source: P) -> Result<()> process::exit(127); }; - let pid = unsafe { ns::spawn(CloneFlags::CLONE_NEWNS, (), |()| exec_tar().unwrap()) } - .context("Failed to run tar")? - .0; + let pid = unsafe { ns::spawn(CloneFlags::CLONE_NEWNS, || exec_tar().unwrap()) } + .context("Failed to run tar")?; let result = io::copy(&mut piper, archive).context("Failed to write TAR archive"); |