mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Detect unsigned time_t and adjust y2038 detection.
This commit is contained in:
parent
f7ab9d61bf
commit
a6b47500ac
9 changed files with 71 additions and 12 deletions
|
@ -1789,7 +1789,7 @@ ask_expire_interval(u32 timestamp,int object,const char *def_expire)
|
|||
? _("Key expires at %s\n")
|
||||
: _("Signature expires at %s\n"),
|
||||
asctimestamp((ulong)(timestamp + interval) ) );
|
||||
#if SIZEOF_TIME_T <= 4
|
||||
#if SIZEOF_TIME_T <= 4 && !defined(HAVE_UNSIGNED_TIME_T)
|
||||
if ((time_t)((ulong)(timestamp+interval)) < 0 )
|
||||
tty_printf (_("Your system can't display dates beyond 2038.\n"
|
||||
"However, it will be correctly handled up to"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue