[2469] in Kerberos

home help back first fref pref prev next nref lref last post

Re: Porting problems in V5

daemon@ATHENA.MIT.EDU (Stephen C. Trier)
Tue Dec 15 17:39:52 1992

Date: 15 Dec 1992 22:08:44 GMT
From: trier@slc6.ins.cwru.edu (Stephen C. Trier)
To: kerberos@shelby.Stanford.EDU

In article <9212082146.AA07100@riipsdev.waterloo.ncr.com> harvard!scubed!riipsdev.waterloo.ncr.com!ajlill@eddie.mit.edu writes:
>For those of you lucky enough not to have dealt extensively with DOS don't
>know, the DOS time() call returns the number of seconds since midnight, Dec
>31, 1899, rather than Jan 1, 1970.

That's strange.  Every DOS C compiler I've used returns seconds since
Jan. 1, 1970.  The only time I've seen something based on 1899/1900
was in code that queried a time server for the time.  time()'s very
definition depends on the Unix epoch of 1/1/70.

Are you perhaps using a time() call that is really a NTP or Time protocol
wrapper?

No matter what, you have the right solution, I think.  A better solution,
if possible, would be to fix the offset used by your time() call.

>Pepsy (from isode 8.0) turns that into an int when it creates it's
>tables.

That's a bug in Pepsy-on-DOS, or Pepsy-on-PDP-11 for that matter.  :-)
Someone did a port of ISODE to DOS a while back.  You might see if you
can find that port, since the Pepsy there probably has this bug fixed.

-- 
Stephen Trier                      "We want to offer you a price that you
Network software type               just can't afford to take advantage of."
Case Western Reserve University         - Sales blurb from HSC Software
trier@ins.cwru.edu

home help back first fref pref prev next nref lref last post