diff --git a/src/linker.rs b/src/linker.rs index 18bb6c0..661d526 100644 --- a/src/linker.rs +++ b/src/linker.rs @@ -138,9 +138,11 @@ fn path_to_lowercase(path: &Path) -> PathBuf { } fn create_symlink_for_file(src: &Path, dst: &Path) -> io::Result<()> { + let absolute_path = fs::canonicalize(src)?; + #[cfg(unix)] { - unix::fs::symlink(src, dst) + unix::fs::symlink(absolute_path, dst) } #[cfg(windows)]