diff options
Diffstat (limited to 'nix-rust/src/c.rs')
-rw-r--r-- | nix-rust/src/c.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nix-rust/src/c.rs b/nix-rust/src/c.rs index 19e737a88..3feeb71a3 100644 --- a/nix-rust/src/c.rs +++ b/nix-rust/src/c.rs @@ -11,7 +11,10 @@ pub extern "C" fn unpack_tarfile( source: foreign::Source, dest_dir: &str, ) -> CBox<Result<(), error::CppException>> { - CBox::new(util::tarfile::unpack_tarfile(source, dest_dir).map_err(|err| err.into())) + CBox::new( + util::tarfile::unpack_tarfile(source, std::path::Path::new(dest_dir)) + .map_err(|err| err.into()), + ) } #[no_mangle] |