diff options
author | Bruce Momjian <bruce@momjian.us> | 2025-08-30 18:26:08 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2025-08-30 18:26:08 -0400 |
commit | 0c6d572c11730913c8207462c5231982e6ca16cc (patch) | |
tree | 2367dd9fff329bf3783094d2dcd42a6b66514679 /src | |
parent | 5487058b56e0a27b6b8f6bb7e819f107587c1e54 (diff) |
add_commit_links.pl: error out if missing major version number
Reported-by: Tom Lane
Author: Tom Lane
Discussion: https://postgr.es/m/53125.1756591456@sss.pgh.pa.us
Diffstat (limited to 'src')
-rwxr-xr-x | src/tools/add_commit_links.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/add_commit_links.pl b/src/tools/add_commit_links.pl index 710a6492032..87a6e47e6fe 100755 --- a/src/tools/add_commit_links.pl +++ b/src/tools/add_commit_links.pl @@ -50,6 +50,8 @@ sub process_file # Get major version number from the file name. $file =~ m/-(\d+)\./; my $major_version = $1; + die "file name $file is not in the expected format\n" + unless defined $major_version; open(my $fh, '<', $file) || die "could not open file $file: $!\n"; open(my $tfh, '>', $tmpfile) || die "could not open file $tmpfile: $!\n"; |