about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAyush Singh <ayush@beagleboard.org>2025-03-18 18:11:18 +0530
committerAyush Singh <ayush@beagleboard.org>2025-03-24 08:40:08 +0530
commitfc0cf52e28cdbc5de45b650797365c91d0c8de76 (patch)
tree6c441ad8f196e204096bc7b36ff2d6cc7c2b6d32
parent0cd1d516aee85608a695d0376cdef059cc50e00a (diff)
downloadrust-fc0cf52e28cdbc5de45b650797365c91d0c8de76.tar.gz
rust-fc0cf52e28cdbc5de45b650797365c91d0c8de76.zip
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 <ayush@beagleboard.org>
-rw-r--r--library/std/src/sys/fs/uefi.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/fs/uefi.rs b/library/std/src/sys/fs/uefi.rs
index f7c33b7c40f..e1d61aaa309 100644
--- a/library/std/src/sys/fs/uefi.rs
+++ b/library/std/src/sys/fs/uefi.rs
@@ -311,8 +311,8 @@ pub fn stat(_p: &Path) -> io::Result<FileAttr> {
     unsupported()
 }
 
-pub fn lstat(_p: &Path) -> io::Result<FileAttr> {
-    unsupported()
+pub fn lstat(p: &Path) -> io::Result<FileAttr> {
+    stat(p)
 }
 
 pub fn canonicalize(p: &Path) -> io::Result<PathBuf> {