mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
std: sys: fs: uefi: Fix FileAttr size
- The underlying file size is represented by file_size field. The size field is just the size of structure since it is a C DST. Signed-off-by: Ayush Singh <ayush@beagleboard.org>
This commit is contained in:
@@ -81,7 +81,7 @@ fn from_uefi(info: helpers::UefiBox<file::Info>) -> Self {
|
||||
unsafe {
|
||||
Self {
|
||||
attr: (*info.as_ptr()).attribute,
|
||||
size: (*info.as_ptr()).size,
|
||||
size: (*info.as_ptr()).file_size,
|
||||
modified: uefi_fs::uefi_to_systemtime((*info.as_ptr()).modification_time),
|
||||
accessed: uefi_fs::uefi_to_systemtime((*info.as_ptr()).last_access_time),
|
||||
created: uefi_fs::uefi_to_systemtime((*info.as_ptr()).create_time),
|
||||
|
||||
Reference in New Issue
Block a user