use absolute path in symlinks

This commit is contained in:
2026-02-28 21:17:48 +01:00
parent b1c7d96f29
commit 68975dbc81

View File

@@ -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)]