Skip to content

Commit

Permalink
fix(feat): disable mkdir in wasm_vm
Browse files Browse the repository at this point in the history
disable `mkdir` in `wasm_vm` on `feature-disable-asset-installation`
  • Loading branch information
a-kenji committed Mar 17, 2022
1 parent e4cc8bc commit f820a8f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion zellij-server/src/wasm_vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,13 @@ fn start_plugin(
let input = Pipe::new();
let stderr = LoggingPipe::new(&plugin.location.to_string(), plugin_id);
let plugin_own_data_dir = plugin_global_data_dir.join(Url::from(&plugin.location).to_string());
fs::create_dir_all(&plugin_own_data_dir).unwrap();
fs::create_dir_all(&plugin_own_data_dir).unwrap_or_else(|e| {
log::error!(
"Could not create plugin_own_data_dir in {:?} \n Error: {:?}",
&plugin_own_data_dir,
e
)
});

let mut wasi_env = WasiState::new("Zellij")
.env("CLICOLOR_FORCE", "1")
Expand Down

0 comments on commit f820a8f

Please sign in to comment.