Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

GnuPG 1.4.23 for DOS (Announce)

posted by bencollver Homepage, 19.05.2024, 05:53

> But why key creation dates jump randomly? This is not constant shift in
> date.
> I never saw such GPG behavior.

It was DJGPP's fault. GPG gets the key creation timestamp from time(2). On DJGPP, time(2) uses gettimeofday(2), which in turn uses mktime(3), which relies on the TZ environment variable in order to produce correct results. When the TZ variable is invalid or unset, time(2) intermittently gives incorrect results. I am not sure why it is intermittent. The timestamp may be correct, or it may be set weeks in the future. If i generated a key with a creation date weeks in the future, and then ran "gpg --list-keys" several times in a row, then any given time it might give a warning, and the next time it might not.

I found that i could work around this using:

SET TZ=DOS0

DOS0 is not a real time zone, but it is valid POSIX TZ extended format. The "DOS" part is just a name and the "0" part means zero hours offset from UTC. This assumes that the hardware clock is set to UTC. A normal DOS system has the hardware clock set to local time, not UTC. In my case i have:

SET TZ=PST8PDT

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 244 users online (0 registered, 244 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum