You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
ksud_magic: use unsafe block for setting PATH environment variable
This commit is contained in:
@@ -280,6 +280,6 @@ fn add_path_to_env(path: &str) -> Result<()> {
|
||||
let new_path = PathBuf::from(path.trim_end_matches('/'));
|
||||
paths.push(new_path);
|
||||
let new_path_env = env::join_paths(paths)?;
|
||||
env::set_var("PATH", new_path_env);
|
||||
unsafe { env::set_var("PATH", new_path_env) };
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user