diff options
author | Rich Salz <rsalz@akamai.com> | 2020-01-07 21:50:20 +0100 |
---|---|---|
committer | Rich Salz <rsalz@akamai.com> | 2020-01-07 21:53:15 +0100 |
commit | 339638b586e77c189e8294f931b99b03d1f08dbd (patch) | |
tree | f3731fd5a71dad5fcbfde3680624e5281e56c361 /crypto/conf | |
parent | Refactor -engine documentation (diff) | |
download | openssl-339638b586e77c189e8294f931b99b03d1f08dbd.tar.xz openssl-339638b586e77c189e8294f931b99b03d1f08dbd.zip |
Make generated copyright year be "now"
Always use the current year in generating output files, rather than
trying to base is on the modtime of the script or input, as that can
vary depending on the ability of the local OS to keep those accurate.
Fixes #10744
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10776)
Diffstat (limited to 'crypto/conf')
-rw-r--r-- | crypto/conf/keysets.pl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/conf/keysets.pl b/crypto/conf/keysets.pl index b0e2249364..42c1988345 100644 --- a/crypto/conf/keysets.pl +++ b/crypto/conf/keysets.pl @@ -57,9 +57,8 @@ foreach (0 .. 127) { push(@V_w32, $v); } -# Output year depends on the year of the script. -my $YEAR = [localtime([stat($0)]->[9])]->[5] + 1900; - +# The year the output file is generated. +my $YEAR = [localtime()]->[5] + 1900; print <<"EOF"; /* * WARNING: do not edit! |