Re: Non-urgent issue with fs/isofs/util.c

Ian McKellar (imckellar@harvestroad.com.au)
Mon, 21 Sep 1998 10:17:15 +0800


--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

On Fri, Sep 18, 1998 at 02:00:26PM +0100, DAVID BALAZIC wrote:
> In <19980918151457.C9740@harvestroad.com.au>, on 09/18/98
> at 03:14 PM, Ian McKellar <imckellar@harvestroad.com.au> said:
>=20
> >Hi,
> >The iso_date function in fs/isofs/util.c doesn't correctly handle leap
> >years.
>=20
> >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.
>=20
> It also fails on 2200 , 2300 , 2500 ...

Yes, and no. The iso9660 date format stores the year as an unsigned (I hope)
byte representing the number of years since 1900, so the whole thing stops
working after 2155 - so 2200, 2300, etc... won't be a problem.

Ian

--=20
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)

--KsGdsel6WgEHnImy
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: Se/9+Y+fJfHCoX1xpb7L9Zc7TjK3M4FJ

iQCVAwUBNgVGrOc73mdZIn3VAQE2iAQAoWTmmyhi+ZoLqNpUCyGSFVoDz6OcgyOG
VykkpAgTfxCPfuunmwPH5xevdes9C7/TLENs1BIpBOjUNH3B+MXMMVAQrJbRZqwH
oHUufnoTuDvjHEEL9oGnxI19RKBS9vQ8yq5nkKe9Qp7GKI2SLOji5eBVqhHj93Cc
3V1krfBhFUI=
=pJhY
-----END PGP SIGNATURE-----

--KsGdsel6WgEHnImy--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/