From 339638b586e77c189e8294f931b99b03d1f08dbd Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Tue, 7 Jan 2020 15:50:20 -0500 Subject: 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 Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/10776) --- fuzz/mkfuzzoids.pl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'fuzz') diff --git a/fuzz/mkfuzzoids.pl b/fuzz/mkfuzzoids.pl index 89cf7bb583..050b5b7047 100755 --- a/fuzz/mkfuzzoids.pl +++ b/fuzz/mkfuzzoids.pl @@ -8,10 +8,8 @@ my $obj_dat_h = $ARGV[0]; -# Output year depends on the date on the input file and the script. -my $YEAR = [localtime([stat($0)]->[9])]->[5] + 1900; -my $iYEAR = [localtime([stat($obj_dat_h)]->[9])]->[5] + 1900; -$YEAR = $iYEAR if $iYEAR > $YEAR; +# The year the output file is generated. +my $YEAR = [localtime()]->[5] + 1900; open IN, '<', $obj_dat_h || die "Couldn't open $obj_dat_h : $!\n"; -- cgit v1.2.3