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 <ayush@beagleboard.org>
This commit is contained in:
Ayush Singh 2025-03-18 18:09:22 +05:30
parent 7290b04b0a
commit 0cd1d516ae
No known key found for this signature in database
GPG key ID: 05CEF5C789E55A74

View file

@ -315,8 +315,8 @@ pub fn lstat(_p: &Path) -> io::Result<FileAttr> {
unsupported()
}
pub fn canonicalize(_p: &Path) -> io::Result<PathBuf> {
unsupported()
pub fn canonicalize(p: &Path) -> io::Result<PathBuf> {
crate::path::absolute(p)
}
pub fn copy(_from: &Path, _to: &Path) -> io::Result<u64> {