Skip to content

Commit fc0cf52

Browse files
committed
std: fs: uefi: Make lstat call stat
- UEFI does not have symlinks. So lstat and stat should behave the same. Signed-off-by: Ayush Singh <[email protected]>
1 parent 0cd1d51 commit fc0cf52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: library/std/src/sys/fs/uefi.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ pub fn stat(_p: &Path) -> io::Result<FileAttr> {
311311
unsupported()
312312
}
313313

314-
pub fn lstat(_p: &Path) -> io::Result<FileAttr> {
315-
unsupported()
314+
pub fn lstat(p: &Path) -> io::Result<FileAttr> {
315+
stat(p)
316316
}
317317

318318
pub fn canonicalize(p: &Path) -> io::Result<PathBuf> {

0 commit comments

Comments
 (0)