Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Nov 21, 2024
1 parent 923b76e commit fe61a0d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/tauri/src/scope/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,7 @@ impl Scope {
fn verify_path<P: AsRef<Path>>(path: P) -> crate::Result<PathBuf> {
let path = path.as_ref();
let path = if path.is_symlink() {
match std::fs::read_link(path) {
Ok(p) => p,
Err(_) => return Err(crate::Error::UnknownPath),
}
std::fs::read_link(path)?
} else {
path.to_path_buf()
};
Expand Down

0 comments on commit fe61a0d

Please sign in to comment.