Skip to content

Commit 526a689

Browse files
committed
std: fs: uefi: Implement canonicalize
- Should be same as absolute in UEFI since there are no symlinks. - Also each absolute path representation should be unique according to the UEFI specification. Signed-off-by: Ayush Singh <[email protected]>
1 parent 75530e9 commit 526a689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/sys/fs/uefi.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ pub fn lstat(_p: &Path) -> io::Result<FileAttr> {
315315
unsupported()
316316
}
317317

318-
pub fn canonicalize(_p: &Path) -> io::Result<PathBuf> {
319-
unsupported()
318+
pub fn canonicalize(p: &Path) -> io::Result<PathBuf> {
319+
crate::path::absolute(p)
320320
}
321321

322322
pub fn copy(_from: &Path, _to: &Path) -> io::Result<u64> {

0 commit comments

Comments
 (0)