Fix following symlink

This commit is contained in:
Wildan M
2026-07-07 05:43:38 +07:00
parent 065e22b7c4
commit d807dd3e4b
+4 -2
View File
@@ -146,7 +146,9 @@ impl<'sock, D: Disk> FileScheme<'sock, D> {
}
redox_path.to_reference()
}
RedoxStr::Relative(redox_reference) => working_dir.join_checked(redox_reference),
RedoxStr::Relative(redox_reference) => {
working_dir.join_checked(redox_reference).canonical()
}
};
nodes.clear();
@@ -542,7 +544,7 @@ pub fn resolve_path<'a, 'b, D: Disk>(
) -> Result<RedoxReference<'b>> {
let dirpath = RedoxReference::new(dir.path());
let dirpath = dirpath.ok_or(Error::new(ENOENT))?;
Ok(dirpath.join_checked(path))
Ok(dirpath.join_checked(path).canonical())
}
impl<'sock, D: Disk> SchemeSync for FileScheme<'sock, D> {