mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 18:51:02 +00:00
PVF: Fix unshare "no such file or directory" error (#2426)
This commit is contained in:
@@ -318,7 +318,7 @@ where
|
||||
{
|
||||
// Create the tmp file here so that the child doesn't need any file creation rights. This will
|
||||
// be cleared at the end of this function.
|
||||
let tmp_file = worker_dir::prepare_tmp_artifact(&worker_dir.path);
|
||||
let tmp_file = worker_dir::prepare_tmp_artifact(worker_dir.path());
|
||||
if let Err(err) = tokio::fs::File::create(&tmp_file).await {
|
||||
gum::warn!(
|
||||
target: LOG_TARGET,
|
||||
@@ -333,7 +333,7 @@ where
|
||||
}
|
||||
};
|
||||
|
||||
let worker_dir_path = worker_dir.path.clone();
|
||||
let worker_dir_path = worker_dir.path().to_owned();
|
||||
let outcome = f(tmp_file, stream, worker_dir).await;
|
||||
|
||||
// Try to clear the worker dir.
|
||||
|
||||
Reference in New Issue
Block a user