1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 03:21:16 +02:00

StorePath::new(): Check store directory

This commit is contained in:
Eelco Dolstra 2019-12-16 17:41:56 +01:00
parent 410acd29c0
commit 14d82baba4
3 changed files with 10 additions and 3 deletions

View file

@ -34,7 +34,8 @@ pub extern "C" fn ffi_StorePath_new(
path: &str,
store_dir: &str,
) -> Result<StorePath, error::CppException> {
StorePath::new(std::path::Path::new(path), store_dir).map_err(|err| err.into())
StorePath::new(std::path::Path::new(path), std::path::Path::new(store_dir))
.map_err(|err| err.into())
}
#[no_mangle]