lkml.org 
[lkml]   [1998]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectNon-urgent issue with fs/isofs/util.c
Hi,

The iso_date function in fs/isofs/util.c doesn't correctly handle leap years.

Well, it doesn't handle the year 2100 - which according to the code is a leap
year, but according to the commonly accepted rules is not.

I don't think we need to be to concerned right now, but changing:
if (((year+2) % 4) == 0 && month > 2)
to:
if (((year+2) % 4) == 0 && month > 2 && year != 130)
should fix it.

Ian

--
Ian McKellar imckellar@harvestroad.com.au
Web Author / Programmer Phone: +61 8 9389 6200
Harvest Road Communications Fax: +61 8 9389 6201
PGPkey: finger ian@harvestroad.com.au ICQ: 5628269

Tell me do you really know your brother man
Cause a heart speaks louder than a colour can
And why would you even shake a man's hand
If you're not going to help him stand
-- Ben Harper (Jah Work)
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.032 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site