Function cap_primitives::fs::read_link_contents
source ยท pub fn read_link_contents(start: &File, path: &Path) -> Result<PathBuf>
Expand description
Perform a readlinkat
-like operation, ensuring that the resolution of the
link path never escapes the directory tree rooted at start
.