diff --git a/rar-common/src/database/finder.rs b/rar-common/src/database/finder.rs index 25f58f5..6e45edd 100644 --- a/rar-common/src/database/finder.rs +++ b/rar-common/src/database/finder.rs @@ -310,6 +310,9 @@ pub trait CredMatcher { } fn find_from_envpath(needle: &PathBuf) -> Option { + if needle.is_absolute() { + return None; + } let env_path = std::env::var_os("PATH").unwrap(); for path in std::env::split_paths(&env_path) { let path = path.join(needle);