diff --git a/ChangeLog b/ChangeLog index c2dd19c62..9c83c81dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ 2001-04-17 Werner Koch * acinclude.m4 (GNUPG_CHECK_DOCBOOK_TO_TEXI): New. + (GNUPG_CHECK_TYPEDEF): Define _GNU_SOURCE because we will use it + anyway. + * configure.in: Use it here. * configure.in (ALL_LINGUAS): Add Estonian translation by Toomas Soome. diff --git a/INSTALL b/INSTALL index 37317b170..26fb9c46e 100644 --- a/INSTALL +++ b/INSTALL @@ -46,7 +46,10 @@ Configure options for GNUPG --disable-nls Disable NLS support (See the file ABOUT-NLS) ---enable-m-guard Enable the integrated malloc checking code. +--enable-m-guard Enable the integrated malloc checking code. Please + note that this feature does not work on all CPUs + (e.g. SunOS 5.7 on UltraSparc-2) and might give + you a Bus error. --disable-dynload If you have problems with dynamic loading, this option disables all dynamic loading stuff. diff --git a/THANKS b/THANKS index 159e1e907..2b75cab42 100644 --- a/THANKS +++ b/THANKS @@ -32,6 +32,7 @@ David C Niemi niemi@tuxers.net David Champion dgc@uchicago.edu David Ellement ellement@sdd.hp.com David Hallinan hallinan@rtd.com +David Hollenberg dhollen@ISI.EDU David Mathog MATHOG@seqaxp.bio.caltech.edu Detlef Lannert lannert@lannert.rz.uni-duesseldorf.de Dimitri dmitri@advantrix.com @@ -164,6 +165,7 @@ Tomasz Kozlowski tomek@rentec.com Thomas Mikkelsen tbm@image.dk Ulf Möller 3umoelle@informatik.uni-hamburg.de Urko Lusa ulusa@euskalnet.net +Vincent P. Broman broman@spawar.navy.mil Walter Hofmann Walter.Hofmann@physik.stud.uni-erlangen.de Walter Koch koch@hsp.de Wayne Chapeskie waynec@spinnaker.com diff --git a/acinclude.m4 b/acinclude.m4 index 5c7e01bcd..d5acb03fb 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -31,7 +31,8 @@ dnl AC_DEFUN(GNUPG_CHECK_TYPEDEF, [ AC_MSG_CHECKING(for $1 typedef) AC_CACHE_VAL(gnupg_cv_typedef_$1, - [AC_TRY_COMPILE([#include + [AC_TRY_COMPILE([#define _GNU_SOURCE 1 + #include #include ], [ #undef $1 int a = sizeof($1); diff --git a/doc/ChangeLog b/doc/ChangeLog index 558423932..32c19c240 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2001-04-19 Werner Koch + + * faq.raw: Add a note about dates displayed as ????-??-??. + 2001-04-17 Werner Koch * Makefile.am (%.texi): Add rules to create .texi from .sgml. diff --git a/doc/DETAILS b/doc/DETAILS index 4249d24a1..a75ca663f 100644 --- a/doc/DETAILS +++ b/doc/DETAILS @@ -56,6 +56,8 @@ ssb::1536:20:5CE086B5B5A18FF4:1998-07-07:0::: addition to these letters, uppercase version of the letter to denote the _usable_ capabilities of the entire key. +All dates are displayed in the format yyyy-mm-dd unless you use the option +--fixed-list-mode in which case they are dispplay as seconds since epoch. More fields may be added later. If field 1 has the tag "pkd", a listing looks like this: diff --git a/doc/FAQ b/doc/FAQ index 03c42ec3a..9c6666690 100644 --- a/doc/FAQ +++ b/doc/FAQ @@ -83,8 +83,9 @@ you could search in the mailing list archive. 6.11) I get "gpg: waiting for lock ..." 6.12) Older gpg's (e.g., 1.0) have problems with keys from newer gpgs ... 6.13) With 1.0.4, I get "this cipher algorithm is deprecated ..." - 6.14) I still have a problem. How do I report a bug? - 6.15) Why doesn't GnuPG support X509 certificates? + 6.14) Some dates are displayed as ????-??-??, why? + 6.15) I still have a problem. How do I report a bug? + 6.16) Why doesn't GnuPG support X509 certificates? 7. ADVANCED TOPICS 7.1) How does this whole thing work? @@ -665,7 +666,15 @@ in it - why? "deprecated". Ignore this warning, more recent versions of gpg are corrected. -6.14) I still have a problem. How do I report a bug? +6.14) Some dates are displayed as ????-??-??, why? + + Due to constraints in most libc implementations, dates beyond + 2038-01-19 can't be displayed correctly. 64 bit OSes are not + affected by this problem. To avoid printing wrong dates, GnuPG + instead prints some question marks. To see the correct value, you + can use the options --with-colons and --fixed-list-mode. + +6.15) I still have a problem. How do I report a bug? Are you sure that it's not been mentioned somewhere on the mailing lists? Did you have a look at the bug list (You'll find a link to @@ -674,7 +683,7 @@ in it - why? list. Otherwise, use the GUUG bug tracking system http://bugs.guug.de/Reporting.html. -6.15) Why doesn't GnuPG support X509 certificates? +6.16) Why doesn't GnuPG support X509 certificates? GnuPG, first and foremost, is an implementation of the OpenPGP standard (RFC 2440), which is a competing infrastructure, different diff --git a/doc/faq.raw b/doc/faq.raw index bc9170dfd..7b1702be6 100644 --- a/doc/faq.raw +++ b/doc/faq.raw @@ -632,6 +632,14 @@ in it - why? "deprecated". Ignore this warning, more recent versions of gpg are corrected. + Some dates are displayed as ????-??-??, why? + + Due to constraints in most libc implementations, dates beyond + 2038-01-19 can't be displayed correctly. 64 bit OSes are not + affected by this problem. To avoid printing wrong dates, GnuPG + instead prints some question marks. To see the correct value, you + can use the options --with-colons and --fixed-list-mode. + I still have a problem. How do I report a bug? Are you sure that it's not been mentioned somewhere on the mailing diff --git a/doc/gpg.sgml b/doc/gpg.sgml index 150b35ba4..0ddaca95c 100644 --- a/doc/gpg.sgml +++ b/doc/gpg.sgml @@ -1377,7 +1377,8 @@ in future versions. --fixed-list-mode -Do not merge user ID and primary key in --with-colon listing mode. +Do not merge user ID and primary key in --with-colon listing mode and +print all timestamps as seconds since 1970-01-01. diff --git a/g10/ChangeLog b/g10/ChangeLog index 1940576fd..d08090e44 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,23 @@ +2001-04-19 Werner Koch + + * keyid.c (mk_datestr): New. Handles negative times. we must do + this because Windoze segvs on negative times passed to gmtime(). + Changed all datestr_from function to use this one. + + * keyid.c, keyid.h (colon_strtime): New. To implement the + fixed-list-mode. + (colon_datestr_from_pk): New. + (colon_datestr_from_sk): New. + (colon_datestr_from_sig): New. + * keylist.c (list_keyblock_colon): Use these functions here. + * mainproc.c (list_node): Ditto. + +2001-04-18 Werner Koch + + * openfile.c (open_sigfile): Fixed the handling of ".sign". + * mainproc.c (proc_tree): Use iobuf_get_real_fname. + Both are by Vincent Broman. + 2001-04-14 Werner Koch * getkey.c (fixup_uidnode): Removed check for !sig which is diff --git a/g10/keydb.h b/g10/keydb.h index 8468a272e..b4ff7a56c 100644 --- a/g10/keydb.h +++ b/g10/keydb.h @@ -185,6 +185,12 @@ const char *datestr_from_sk( PKT_secret_key *sk ); const char *datestr_from_sig( PKT_signature *sig ); const char *expirestr_from_pk( PKT_public_key *pk ); const char *expirestr_from_sk( PKT_secret_key *sk ); + +const char *colon_strtime (u32 t); +const char *colon_datestr_from_pk (PKT_public_key *pk); +const char *colon_datestr_from_sk (PKT_secret_key *sk); +const char *colon_datestr_from_sig (PKT_signature *sig); + byte *fingerprint_from_sk( PKT_secret_key *sk, byte *buf, size_t *ret_len ); byte *fingerprint_from_pk( PKT_public_key *pk, byte *buf, size_t *ret_len ); diff --git a/g10/keyid.c b/g10/keyid.c index ac2c7e7c3..6f55ac7ae 100644 --- a/g10/keyid.c +++ b/g10/keyid.c @@ -260,6 +260,21 @@ nbits_from_sk( PKT_secret_key *sk ) return pubkey_nbits( sk->pubkey_algo, sk->skey ); } +static const char * +mk_datestr (char *buffer, time_t atime) +{ + struct tm *tp; + + if ( atime < 0 ) /* 32 bit time_t and after 2038-01-19 */ + strcpy (buffer, "????-??-??"); /* mark this as invalid */ + else { + tp = gmtime (&atime); + sprintf (buffer,"%04d-%02d-%02d", + 1900+tp->tm_year, tp->tm_mon+1, tp->tm_mday ); + } + return buffer; +} + /**************** * return a string with the creation date of the pk * Note: this is alloced in a static buffer. @@ -269,36 +284,27 @@ const char * datestr_from_pk( PKT_public_key *pk ) { static char buffer[11+5]; - struct tm *tp; time_t atime = pk->timestamp; - tp = gmtime( &atime ); - sprintf(buffer,"%04d-%02d-%02d", 1900+tp->tm_year, tp->tm_mon+1, tp->tm_mday ); - return buffer; + return mk_datestr (buffer, atime); } const char * datestr_from_sk( PKT_secret_key *sk ) { static char buffer[11+5]; - struct tm *tp; time_t atime = sk->timestamp; - tp = gmtime( &atime ); - sprintf(buffer,"%04d-%02d-%02d", 1900+tp->tm_year, tp->tm_mon+1, tp->tm_mday ); - return buffer; + return mk_datestr (buffer, atime); } const char * datestr_from_sig( PKT_signature *sig ) { static char buffer[11+5]; - struct tm *tp; time_t atime = sig->timestamp; - tp = gmtime( &atime ); - sprintf(buffer,"%04d-%02d-%02d", 1900+tp->tm_year, tp->tm_mon+1, tp->tm_mday ); - return buffer; + return mk_datestr (buffer, atime); } @@ -306,32 +312,73 @@ const char * expirestr_from_pk( PKT_public_key *pk ) { static char buffer[11+5]; - struct tm *tp; time_t atime; if( !pk->expiredate ) return _("never "); atime = pk->expiredate; - tp = gmtime( &atime ); - sprintf(buffer,"%04d-%02d-%02d", 1900+tp->tm_year, tp->tm_mon+1, tp->tm_mday ); - return buffer; + return mk_datestr (buffer, atime); } const char * expirestr_from_sk( PKT_secret_key *sk ) { static char buffer[11+5]; - struct tm *tp; time_t atime; if( !sk->expiredate ) return "never "; atime = sk->expiredate; - tp = gmtime( &atime ); - sprintf(buffer,"%04d-%02d-%02d", 1900+tp->tm_year, tp->tm_mon+1, tp->tm_mday ); - return buffer; + return mk_datestr (buffer, atime); } +const char * +colon_strtime (u32 t) +{ + if (!t) + return ""; + if (opt.fixed_list_mode) { + static char buf[15]; + sprintf (buf, "%lu", (ulong)t); + return buf; + } + return strtimestamp(t); +} + +const char * +colon_datestr_from_pk (PKT_public_key *pk) +{ + if (opt.fixed_list_mode) { + static char buf[15]; + sprintf (buf, "%lu", (ulong)pk->timestamp); + return buf; + } + return datestr_from_pk (pk); +} + +const char * +colon_datestr_from_sk (PKT_secret_key *sk) +{ + if (opt.fixed_list_mode) { + static char buf[15]; + sprintf (buf, "%lu", (ulong)sk->timestamp); + return buf; + } + return datestr_from_sk (sk); +} + +const char * +colon_datestr_from_sig (PKT_signature *sig) +{ + if (opt.fixed_list_mode) { + static char buf[15]; + sprintf (buf, "%lu", (ulong)sig->timestamp); + return buf; + } + return datestr_from_sig (sig); +} + + /**************** . * Return a byte array with the fingerprint for the given PK/SK diff --git a/g10/keylist.c b/g10/keylist.c index 4f26dc27d..c89aa5440 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -399,8 +399,8 @@ list_keyblock_colon( KBNODE keyblock, int secret ) nbits_from_sk( sk ), sk->pubkey_algo, (ulong)keyid[0],(ulong)keyid[1], - datestr_from_sk( sk ), - sk->expiredate? strtimestamp(sk->expiredate):"" + colon_datestr_from_sk( sk ), + colon_strtime (sk->expiredate) /* fixme: add LID here */ ); } else { @@ -427,8 +427,8 @@ list_keyblock_colon( KBNODE keyblock, int secret ) nbits_from_pk( pk ), pk->pubkey_algo, (ulong)keyid[0],(ulong)keyid[1], - datestr_from_pk( pk ), - pk->expiredate? strtimestamp(pk->expiredate):"" ); + colon_datestr_from_pk( pk ), + colon_strtime (pk->expiredate) ); if( pk->local_id ) printf("%lu", pk->local_id ); putchar(':'); @@ -529,8 +529,8 @@ list_keyblock_colon( KBNODE keyblock, int secret ) nbits_from_pk( pk2 ), pk2->pubkey_algo, (ulong)keyid2[0],(ulong)keyid2[1], - datestr_from_pk( pk2 ), - pk2->expiredate? strtimestamp(pk2->expiredate):"" + colon_datestr_from_pk( pk2 ), + colon_strtime (pk2->expiredate) /* fixme: add LID and ownertrust here */ ); if( pk->local_id ) /* use the local_id of the main key??? */ @@ -565,8 +565,8 @@ list_keyblock_colon( KBNODE keyblock, int secret ) nbits_from_sk( sk2 ), sk2->pubkey_algo, (ulong)keyid2[0],(ulong)keyid2[1], - datestr_from_sk( sk2 ), - sk2->expiredate? strtimestamp(sk2->expiredate):"" + colon_datestr_from_sk( sk2 ), + colon_strtime (sk2->expiredate) /* fixme: add LID */ ); print_capabilities (NULL, sk2, NULL); putchar ('\n'); @@ -627,7 +627,7 @@ list_keyblock_colon( KBNODE keyblock, int secret ) putchar(sigrc); printf("::%d:%08lX%08lX:%s::::", sig->pubkey_algo, (ulong)sig->keyid[0], - (ulong)sig->keyid[1], datestr_from_sig(sig)); + (ulong)sig->keyid[1], colon_datestr_from_sig(sig)); if( sigrc == '%' ) printf("[%s] ", g10_errstr(rc) ); else if( sigrc == '?' ) diff --git a/g10/mainproc.c b/g10/mainproc.c index bb0d922fb..eb6d4f6c1 100644 --- a/g10/mainproc.c +++ b/g10/mainproc.c @@ -781,8 +781,8 @@ list_node( CTX c, KBNODE node ) nbits_from_pk( pk ), pk->pubkey_algo, (ulong)keyid[0],(ulong)keyid[1], - datestr_from_pk( pk ), - pk->expiredate? strtimestamp(pk->expiredate):"" ); + colon_datestr_from_pk( pk ), + colon_strtime (pk->expiredate) ); if( c->local_id ) printf("%lu", c->local_id ); putchar(':'); @@ -868,8 +868,8 @@ list_node( CTX c, KBNODE node ) nbits_from_sk( sk ), sk->pubkey_algo, (ulong)keyid[0],(ulong)keyid[1], - datestr_from_sk( sk ), - sk->expiredate? strtimestamp(sk->expiredate):"" + colon_datestr_from_sk( sk ), + colon_strtime (sk->expiredate) /* fixme: add LID */ ); } else @@ -966,7 +966,7 @@ list_node( CTX c, KBNODE node ) putchar(sigrc); printf("::%d:%08lX%08lX:%s::::", sig->pubkey_algo, (ulong)sig->keyid[0], - (ulong)sig->keyid[1], datestr_from_sig(sig)); + (ulong)sig->keyid[1], colon_datestr_from_sig(sig)); } else printf("%c %08lX %s ", @@ -1415,7 +1415,7 @@ proc_tree( CTX c, KBNODE node ) } else { rc = ask_for_detached_datafile( c->mfx.md, c->mfx.md2, - iobuf_get_fname(c->iobuf), + iobuf_get_real_fname(c->iobuf), n1? (n1->pkt->pkt.onepass_sig->sig_class == 0x01):0 ); } if( rc ) { @@ -1493,7 +1493,7 @@ proc_tree( CTX c, KBNODE node ) } else { rc = ask_for_detached_datafile( c->mfx.md, c->mfx.md2, - iobuf_get_fname(c->iobuf), + iobuf_get_real_fname(c->iobuf), (sig->sig_class == 0x01) ); } if( rc ) { diff --git a/g10/openfile.c b/g10/openfile.c index 79c99785a..f207dd2bb 100644 --- a/g10/openfile.c +++ b/g10/openfile.c @@ -267,7 +267,7 @@ open_sigfile( const char *iname ) || !strcmp(iname + len - 4, ".asc")) ) { char *buf; buf = m_strdup(iname); - buf[len-4] = 0 ; + buf[len-(buf[len-1]=='n'?5:4)] = 0 ; a = iobuf_open( buf ); if( a && opt.verbose ) log_info(_("assuming signed data in `%s'\n"), buf ); diff --git a/po/da.po b/po/da.po index 5df4234f8..0211d8631 100644 --- a/po/da.po +++ b/po/da.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.0.0h\n" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "PO-Revision-Date: 2000-03-07 22:51+01:00\n" "Last-Translator: Birger Langkjer \n" "Language-Team: Danish \n" @@ -27,27 +27,27 @@ msgstr "operation er ikke mulig uden beskyttet hukommelse indl msgid "(you may have used the wrong program for this task)\n" msgstr "(du kan have brugt et forkert program til denne opgave)\n" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "ja" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "jJ" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "n" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "nN" -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "afslut" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "aA" diff --git a/po/de.po b/po/de.po index 6fa4d00cb..e7f8964bf 100644 --- a/po/de.po +++ b/po/de.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg-1.0.4\n" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "PO-Revision-Date: 2001-04-16 14:20+0200\n" "Last-Translator: Walter Koch \n" "Language-Team: German \n" @@ -27,27 +27,27 @@ msgid "(you may have used the wrong program for this task)\n" msgstr "" "(möglicherweise haben Sie das falsche Programm für diese Aufgabe benutzt)\n" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "ja" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "jJyY" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "nein" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "nN" -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "quit" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "qQ" diff --git a/po/eo.po b/po/eo.po index 78887b061..b6566ebd2 100644 --- a/po/eo.po +++ b/po/eo.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.0.1e\n" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "PO-Revision-Date: 2000-08-16 23:19+01:00\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" @@ -25,27 +25,27 @@ msgstr "operacio ne eblas sen sekura memoro kun komenca valoro\n" msgid "(you may have used the wrong program for this task)\n" msgstr "(eble vi uzis la maløustan programon por æi tiu tasko)\n" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "jes" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "jJ" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "ne" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "nN" -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "fini" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "fF" diff --git a/po/es_ES.po b/po/es_ES.po index 646c0a449..c4d3009f5 100644 --- a/po/es_ES.po +++ b/po/es_ES.po @@ -7,7 +7,7 @@ # GPG version: 1.0.0 msgid "" msgstr "" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "PO-Revision-Date: 1999-10-27 06:35+0200\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Date: 1998-11-13 10:49:25+0100\n" @@ -34,27 +34,27 @@ msgstr "operaci msgid "(you may have used the wrong program for this task)\n" msgstr "(es posible que haya usado el programa incorrecto para esta tarea)\n" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "sí" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "sS" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "" -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "" diff --git a/po/et.po b/po/et.po index 4ceecca11..618aeaa47 100644 --- a/po/et.po +++ b/po/et.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.0.4\n" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "PO-Revision-Date: 2001-01-04 12:01+02:00\n" "Last-Translator: Toomas Soome \n" "Language-Team: Estonian \n" @@ -25,27 +25,27 @@ msgstr "initsialiseerimata turvalise m msgid "(you may have used the wrong program for this task)\n" msgstr "(te kasutasite vahest selle töö jaoks valet programmi)\n" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "jah" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "jJ" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "ei" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "eE" -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "välju" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "vV" diff --git a/po/fr.po b/po/fr.po index 6d49bd88d..1ebd859af 100644 --- a/po/fr.po +++ b/po/fr.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.0.1h\n" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "PO-Revision-Date: 2000-06-28 18:41+02:00\n" "Last-Translator: Gaël Quéri \n" "Language-Team: French \n" @@ -32,27 +32,27 @@ msgstr "" msgid "(you may have used the wrong program for this task)\n" msgstr "(vous avez peut-être utilisé un programme non adapté à cette fin)\n" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "oui" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "oO" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "non" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "nN" -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "quitter" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "qQ" diff --git a/po/id.po b/po/id.po index 70b010ee5..db5844def 100644 --- a/po/id.po +++ b/po/id.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: GNU Privacy Guard 1.0.1\n" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "PO-Revision-Date: 2000-02-06 18:04+07:00\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesia \n" @@ -25,27 +25,27 @@ msgstr "operasi tidak mungkin tanpa menginisialisasi memori yang aman\n" msgid "(you may have used the wrong program for this task)\n" msgstr "(anda mungkin menggunakan program yang salah untuk tugas ini)\n" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "ya" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "yY" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "tidak" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "tT" -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "keluar" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "kK" diff --git a/po/it.po b/po/it.po index 72476d746..77987e881 100644 --- a/po/it.po +++ b/po/it.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg-1.0.0h\n" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "PO-Revision-Date: 1999-12-08 15:51+02:00\n" "Last-Translator: Marco d'Itri \n" "Language-Team: Italian \n" @@ -25,27 +25,27 @@ msgstr "l'operazione non msgid "(you may have used the wrong program for this task)\n" msgstr "(potresti avere usato il programma sbagliato per questa funzione)\n" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "sì" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "sS" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "no" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "nN" -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "quit" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "qQ" diff --git a/po/ja.po b/po/ja.po index e1280fca2..409915d4e 100644 --- a/po/ja.po +++ b/po/ja.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.0.4\n" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "PO-Revision-Date: 2000-10-19 23:08+09:00\n" "Last-Translator: IIDA Yosiaki \n" "Language-Team: Japanese \n" @@ -27,27 +27,27 @@ msgstr " msgid "(you may have used the wrong program for this task)\n" msgstr "(¤³¤ÎÌÜŪ¤Ë¤Ï¸í¤Ã¤¿¥×¥í¥°¥é¥à¤òÍѤ¤¤¿¤Î¤Ç¤·¤ç¤¦)\n" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "yes" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "yY" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "no" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "nN" -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "quit" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "qQ" diff --git a/po/nl.po b/po/nl.po index 4072a7555..333d0d0e7 100644 --- a/po/nl.po +++ b/po/nl.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.0.0h\n" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "PO-Revision-Date: 2000-02-20 21:30+01:00\n" "Last-Translator: Ivo Timmermans \n" "Language-Team: Dutch \n" @@ -25,27 +25,27 @@ msgstr "bewerking is niet mogelijk zonder initialisatie van veilig geheugen\n" msgid "(you may have used the wrong program for this task)\n" msgstr "(misschien heb je hiervoor het verkeerde programma gebruikt)\n" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "ja" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "yYjJ" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "nee" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "nN" -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "einde" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "qQeE" diff --git a/po/pl.po b/po/pl.po index 01c8dd784..b4e19b046 100644 --- a/po/pl.po +++ b/po/pl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg-1.0.4\n" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "PO-Revision-Date: 2000-10-18 22:54+02:00\n" "Last-Translator: Janusz A. Urbanowicz \n" "Language-Team: Polish \n" @@ -35,27 +35,27 @@ msgstr "operacja niemo msgid "(you may have used the wrong program for this task)\n" msgstr "(prawdopodobnie u¿ywany program jest niew³a¶ciwy dlatego zadania)\n" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "tak" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "tT" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "nie" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "nN" -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "wyj¶cie" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "wW" diff --git a/po/pt_BR.po b/po/pt_BR.po index 94b94278b..6c1638ef4 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -5,7 +5,7 @@ # msgid "" msgstr "" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Date: 1998-11-20 23:46:36-0200\n" "From: Thiago Jung Bauermann \n" @@ -29,28 +29,28 @@ msgstr "a opera msgid "(you may have used the wrong program for this task)\n" msgstr "(você pode ter usado o programa errado para esta tarefa)\n" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "sim" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "sS" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "não" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "nN" # INICIO MENU -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "sair" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "qQ" diff --git a/po/pt_PT.po b/po/pt_PT.po index 6199bd172..5a93c3b86 100644 --- a/po/pt_PT.po +++ b/po/pt_PT.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg\n" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "PO-Revision-Date: 2001-04-08 16:28+00:00\n" "Last-Translator: Pedro Morais \n" "Language-Team: pt \n" @@ -28,27 +28,27 @@ msgstr "a opera msgid "(you may have used the wrong program for this task)\n" msgstr "(você pode ter usado o programa errado para esta tarefa)\n" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "sim" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "sS" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "não" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "nN" -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "sair" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "qQ" diff --git a/po/ru.po b/po/ru.po index 6bee9b83a..db5f366bc 100644 --- a/po/ru.po +++ b/po/ru.po @@ -9,7 +9,7 @@ # QingLong (couldn't send an email to let you know) msgid "" msgstr "" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "Content-Type: text/plain; charset=\n" "Date: 1998-01-26 22:08:36+0100\n" "From: Gregory Steuck \n" @@ -36,27 +36,27 @@ msgstr "" msgid "(you may have used the wrong program for this task)\n" msgstr "" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "ÄÁ(y)" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "yY" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "" -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "×ÙÈÏÄ" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "" diff --git a/po/sv.po b/po/sv.po index d3e58a026..03f5224bf 100644 --- a/po/sv.po +++ b/po/sv.po @@ -13,7 +13,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg 1.0.1e\n" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "PO-Revision-Date: 2000-04-23 16:43+02:00\n" "Last-Translator: Daniel Resare \n" "Language-Team: Swedish \n" @@ -33,27 +33,27 @@ msgstr "operationen msgid "(you may have used the wrong program for this task)\n" msgstr "(du kan ha använt fel program för denna uppgift)\n" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "ja" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "jJ" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "nej" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "nN" -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "avsluta" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "aA" diff --git a/po/tr.po b/po/tr.po index 6619de098..faf7d3cb2 100644 --- a/po/tr.po +++ b/po/tr.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: gnupg-1.0.4\n" -"POT-Creation-Date: 2001-04-17 11:40+0200\n" +"POT-Creation-Date: 2001-04-19 12:04+0200\n" "PO-Revision-Date: 2000-11-01 05:20+300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" @@ -25,27 +25,27 @@ msgstr "g msgid "(you may have used the wrong program for this task)\n" msgstr "(bu görev için yanlýþ program kullanmýþ olabilirsiniz)\n" -#: util/miscutil.c:277 util/miscutil.c:306 +#: util/miscutil.c:287 util/miscutil.c:316 msgid "yes" msgstr "evet" -#: util/miscutil.c:278 util/miscutil.c:309 +#: util/miscutil.c:288 util/miscutil.c:319 msgid "yY" msgstr "eE" -#: util/miscutil.c:279 util/miscutil.c:307 +#: util/miscutil.c:289 util/miscutil.c:317 msgid "no" msgstr "hayýr" -#: util/miscutil.c:280 util/miscutil.c:310 +#: util/miscutil.c:290 util/miscutil.c:320 msgid "nN" msgstr "yY" -#: g10/keyedit.c:581 util/miscutil.c:308 +#: g10/keyedit.c:581 util/miscutil.c:318 msgid "quit" msgstr "çýkýþ" -#: util/miscutil.c:311 +#: util/miscutil.c:321 msgid "qQ" msgstr "çÇ" diff --git a/scripts/ChangeLog b/scripts/ChangeLog index 474ecdd86..0a78da182 100644 --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2001-04-19 Werner Koch + + * autogen.sh: Add VPATH build support for option --build-w32. + 2001-03-12 Werner Koch * config.guess, config.sub: Replaced with the current GNU CVS ones. diff --git a/scripts/autogen.sh b/scripts/autogen.sh index 07a1f5903..2594a7d65 100755 --- a/scripts/autogen.sh +++ b/scripts/autogen.sh @@ -10,20 +10,21 @@ aclocal_vers=1.4 DIE=no if test "$1" = "--build-w32"; then + tsdir=$(cd `dirname $0`; cd ..; pwd) shift target=i386--mingw32 - if [ ! -f scripts/config.guess ]; then - echo "scripts/config.guess not found" >&2 + if [ ! -f $tsdir/scripts/config.guess ]; then + echo "$tsdir/scripts/config.guess not found" >&2 exit 1 fi - host=`scripts/config.guess` + host=`$tsdir/scripts/config.guess` if ! mingw32 --version >/dev/null; then echo "We need at least version 0.3 of MingW32/CPD" >&2 exit 1 fi - if [ -f config.h ]; then + if [ -f "$tsdir/config.h" ]; then if grep HAVE_DOSISH_SYSTEM config.h | grep undef >/dev/null; then echo "Pease run a 'make distclean' first" >&2 exit 1 @@ -53,7 +54,7 @@ if test "$1" = "--build-w32"; then fi [ $DIE = yes ] && exit 1 - ./configure --host=${host} --target=${target} \ + $tsdir/configure --host=${host} --target=${target} \ ${disable_foo_tests} $* exit $? fi diff --git a/util/ChangeLog b/util/ChangeLog index 589eb26c8..1530f07b3 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,9 @@ +2001-04-19 Werner Koch + + * miscutil.c (asctimestamp): Handle negative times. We must do + this because Windoze segvs on negative times passed to gmtime(). + (strtimestamp): Ditto. + 2001-04-14 Werner Koch * strgutil.c (utf8_to_native): Fixed a segv. Thanks to Keith Clayton. diff --git a/util/memory.c b/util/memory.c index af79cd0cb..ef9a315dc 100644 --- a/util/memory.c +++ b/util/memory.c @@ -42,6 +42,10 @@ #define MAGIC_SEC_BYTE 0xcc #define MAGIC_END_BYTE 0xaa +/* This is a very crude alignment check which does not work on all CPUs + * IIRC, I once introduced it for testing on an Alpha. We should better + * replace this guard stuff with one provided by a modern malloc library + */ #if SIZEOF_UNSIGNED_LONG == 8 #define EXTRA_ALIGN 4 #else diff --git a/util/miscutil.c b/util/miscutil.c index be41d93d4..376834fa6 100644 --- a/util/miscutil.c +++ b/util/miscutil.c @@ -124,10 +124,15 @@ strtimestamp( u32 stamp ) static char buffer[11+5]; struct tm *tp; time_t atime = stamp; - - tp = gmtime( &atime ); - sprintf(buffer,"%04d-%02d-%02d", - 1900+tp->tm_year, tp->tm_mon+1, tp->tm_mday ); + + if (atime < 0) { + strcpy (buffer, "????-??-??"); + } + else { + tp = gmtime( &atime ); + sprintf(buffer,"%04d-%02d-%02d", + 1900+tp->tm_year, tp->tm_mon+1, tp->tm_mday ); + } return buffer; } @@ -144,6 +149,11 @@ asctimestamp( u32 stamp ) struct tm *tp; time_t atime = stamp; + if (atime < 0) { + strcpy (buffer, "????-??-??"); + return buffer; + } + tp = localtime( &atime ); #ifdef HAVE_STRFTIME #if defined(HAVE_NL_LANGINFO)