]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
fix unix range
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 10 Dec 2010 14:04:12 +0000 (15:04 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 10 Dec 2010 14:04:12 +0000 (15:04 +0100)
grub-core/fs/iso9660.c

index 03bfd3e922f941f8667606183842a6655e02b320..3b0da5e538497ca32b724985eef1b4a35da31bc4 100644 (file)
@@ -192,7 +192,7 @@ grub_datetime2unixtime (const struct grub_datetime *datetime, grub_int32_t *nix)
        31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30};
   grub_uint8_t months[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
 
-  if (datetime->year > 2038 || datetime->year < 1902)
+  if (datetime->year > 2038 || datetime->year < 1901)
     return grub_error (GRUB_ERR_OUT_OF_RANGE, "outside of UNIX epoch");
   if (datetime->month > 12 || datetime->month < 1)
     return grub_error (GRUB_ERR_BAD_NUMBER, "not a valid month");