mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03:00
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>
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user