mirror of
https://git.proxmox.com/git/grub2
synced 2025-10-30 18:07:32 +00:00
Some filesystems nowadays use 64-bit types for timestamps. So, update grub_dirhook_info struct to use an grub_int64_t type to store mtime. This also updates the grub_unixtime2datetime() function to receive a 64-bit timestamp argument and do 64-bit-safe divisions. All the remaining conversion from 32-bit to 64-bit should be safe, as 32-bit to 64-bit attributions will be implicitly casted. The most critical part in the 32-bit to 64-bit conversion is in the function grub_unixtime2datetime() where it needs to deal with the 64-bit type. So, for that, the grub_divmod64() helper has been used. These changes enables the GRUB to support dates beyond y2038. Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> |
||
|---|---|---|
| .. | ||
| boot | ||
| lib | ||
| bswap_test.c | ||
| checksums.h | ||
| cmdline_cat_test.c | ||
| cmp_test.c | ||
| ctz_test.c | ||
| div_test.c | ||
| example_functional_test.c | ||
| fake_input.c | ||
| gfxterm_menu.c | ||
| legacy_password_test.c | ||
| mul_test.c | ||
| pbkdf2_test.c | ||
| setjmp_test.c | ||
| shift_test.c | ||
| signature_test.c | ||
| signatures.h | ||
| sleep_test.c | ||
| strtoull_test.c | ||
| test_blockarg.c | ||
| video_checksum.c | ||
| videotest_checksum.c | ||
| xnu_uuid_test.c | ||