diff options
author | Werner Koch <[email protected]> | 2001-04-19 11:40:45 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2001-04-19 11:40:45 +0000 |
commit | 397a73b685f128a9e78255ab830194717b453e93 (patch) | |
tree | 00d78b7f4081a03eab45b8d70e6badd12089aa24 | |
parent | Estonian translation, .texi man pages. (diff) | |
download | gnupg-397a73b685f128a9e78255ab830194717b453e93.tar.gz gnupg-397a73b685f128a9e78255ab830194717b453e93.zip |
Fixes for W32
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | INSTALL | 5 | ||||
-rw-r--r-- | THANKS | 2 | ||||
-rw-r--r-- | acinclude.m4 | 3 | ||||
-rw-r--r-- | doc/ChangeLog | 4 | ||||
-rw-r--r-- | doc/DETAILS | 2 | ||||
-rw-r--r-- | doc/FAQ | 17 | ||||
-rw-r--r-- | doc/faq.raw | 8 | ||||
-rw-r--r-- | doc/gpg.sgml | 3 | ||||
-rw-r--r-- | g10/ChangeLog | 20 | ||||
-rw-r--r-- | g10/keydb.h | 6 | ||||
-rw-r--r-- | g10/keyid.c | 87 | ||||
-rw-r--r-- | g10/keylist.c | 18 | ||||
-rw-r--r-- | g10/mainproc.c | 14 | ||||
-rw-r--r-- | g10/openfile.c | 2 | ||||
-rw-r--r-- | po/da.po | 14 | ||||
-rw-r--r-- | po/de.po | 14 | ||||
-rw-r--r-- | po/eo.po | 14 | ||||
-rw-r--r-- | po/es_ES.po | 14 | ||||
-rw-r--r-- | po/et.po | 14 | ||||
-rw-r--r-- | po/fr.po | 14 | ||||
-rw-r--r-- | po/id.po | 14 | ||||
-rw-r--r-- | po/it.po | 14 | ||||
-rw-r--r-- | po/ja.po | 14 | ||||
-rw-r--r-- | po/nl.po | 14 | ||||
-rw-r--r-- | po/pl.po | 14 | ||||
-rw-r--r-- | po/pt_BR.po | 14 | ||||
-rw-r--r-- | po/pt_PT.po | 14 | ||||
-rw-r--r-- | po/ru.po | 14 | ||||
-rw-r--r-- | po/sv.po | 14 | ||||
-rw-r--r-- | po/tr.po | 14 | ||||
-rw-r--r-- | scripts/ChangeLog | 4 | ||||
-rwxr-xr-x | scripts/autogen.sh | 11 | ||||
-rw-r--r-- | util/ChangeLog | 6 | ||||
-rw-r--r-- | util/memory.c | 4 | ||||
-rw-r--r-- | util/miscutil.c | 18 |
36 files changed, 296 insertions, 165 deletions
@@ -1,6 +1,9 @@ 2001-04-17 Werner Koch <[email protected]> * 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. @@ -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. @@ -32,6 +32,7 @@ David C Niemi [email protected] David Champion [email protected] David Ellement [email protected] David Hallinan [email protected] +David Hollenberg [email protected] David Mathog [email protected] Detlef Lannert [email protected] Dimitri [email protected] @@ -164,6 +165,7 @@ Tomasz Kozlowski [email protected] Thomas Mikkelsen [email protected] Ulf M�ller [email protected] Urko Lusa [email protected] +Vincent P. Broman [email protected] Walter Hofmann [email protected] Walter Koch [email protected] Wayne Chapeskie [email protected] 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 <stdlib.h> + [AC_TRY_COMPILE([#define _GNU_SOURCE 1 + #include <stdlib.h> #include <sys/types.h>], [ #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 <[email protected]> + + * faq.raw: Add a note about dates displayed as ????-??-??. + 2001-04-17 Werner Koch <[email protected]> * 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: @@ -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. +<Q> 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. + <Q> 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. <varlistentry> <term>--fixed-list-mode</term> <listitem><para> -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. </para></listitem></varlistentry> <varlistentry> 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 <[email protected]> + + * 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 <[email protected]> + + * 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 <[email protected]> * 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 ); @@ -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 <[email protected]>\n" "Language-Team: Danish <[email protected]>\n" @@ -27,27 +27,27 @@ msgstr "operation er ikke mulig uden beskyttet hukommelse indl�st\n" 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" @@ -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 <[email protected]>\n" "Language-Team: German <[email protected]>\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" @@ -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 <[email protected]>\n" "Language-Team: Esperanto <[email protected]>\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�n imposible sin memoria segura inicializada\n" 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 "" @@ -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 <[email protected]>\n" "Language-Team: Estonian <[email protected]>\n" @@ -25,27 +25,27 @@ msgstr "initsialiseerimata turvalise m�luta ei ole operatsioon v�imalik\n" 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" @@ -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 <[email protected]>\n" "Language-Team: French <[email protected]>\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" @@ -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 <[email protected]>\n" "Language-Team: Indonesia <[email protected]>\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" @@ -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 <[email protected]>\n" "Language-Team: Italian <[email protected]>\n" @@ -25,27 +25,27 @@ msgstr "l'operazione non � possibile senza memoria sicura inizializzata\n" 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" @@ -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 <[email protected]>\n" "Language-Team: Japanese <[email protected]>\n" @@ -27,27 +27,27 @@ msgstr "������Ѥߤΰ����ʥ�����ʤ����ˤϼ¹ԤǤ��ޤ���\n" 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" @@ -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 <[email protected]>\n" "Language-Team: Dutch <[email protected]>\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" @@ -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 <[email protected]>\n" "Language-Team: Polish <[email protected]>\n" @@ -35,27 +35,27 @@ msgstr "operacja niemo�liwa do wykonania bez dost�pnej pami�ci bezpiecznej\n" 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 <[email protected]>\n" @@ -29,28 +29,28 @@ msgstr "a opera��o n�o � poss�vel sem mem�ria segura inicializada\n" 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 <[email protected]>\n" "Language-Team: pt <[email protected]>\n" @@ -28,27 +28,27 @@ msgstr "a opera��o n�o � poss�vel sem mem�ria segura inicializada\n" 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" @@ -9,7 +9,7 @@ # QingLong <qinglong@Bolizm> (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 <[email protected]>\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 "" @@ -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 <[email protected]>\n" "Language-Team: Swedish <[email protected]>\n" @@ -33,27 +33,27 @@ msgstr "operationen �r ej m�jlig utan tillg�ng till s�kert minne\n" 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" @@ -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 <[email protected]>\n" "Language-Team: Turkish <[email protected]>\n" @@ -25,27 +25,27 @@ msgstr "g�venli bellek haz�rlanmadan i�lem yapmak m�mk�n de�il\n" 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 <[email protected]> + + * autogen.sh: Add VPATH build support for option --build-w32. + 2001-03-12 Werner Koch <[email protected]> * 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 <[email protected]> + + * 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 <[email protected]> * 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) |