aboutsummaryrefslogtreecommitdiff
path: root/crypto/bn
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2020-01-07 15:50:20 -0500
committerRich Salz <rsalz@akamai.com>2020-01-07 15:53:15 -0500
commit339638b586e77c189e8294f931b99b03d1f08dbd (patch)
treef3731fd5a71dad5fcbfde3680624e5281e56c361 /crypto/bn
parent018aaeb47874272e157d35c05c68e826301d57f5 (diff)
downloadopenssl-339638b586e77c189e8294f931b99b03d1f08dbd.zip
openssl-339638b586e77c189e8294f931b99b03d1f08dbd.tar.gz
openssl-339638b586e77c189e8294f931b99b03d1f08dbd.tar.bz2
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/bn')
-rw-r--r--crypto/bn/bn_prime.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bn/bn_prime.pl b/crypto/bn/bn_prime.pl
index 76df3fc..b6b546b 100644
--- a/crypto/bn/bn_prime.pl
+++ b/crypto/bn/bn_prime.pl
@@ -6,8 +6,8 @@
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
-# 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!