When commit
0142f0ceeb8dc10a refactored the relevant code into apply_patch(),
it left "perl.c" hard coded into an error message.
sub apply_patch {
my $patch = shift;
+ my ($file) = $patch =~ qr!^diff.*a/(\S+) b/\1!;
open my $fh, '|-', 'patch' or die "Can't run patch: $!";
print $fh $patch;
- close $fh or die "Can't patch perl.c: $?, $!";
+ close $fh or die "Can't patch $file: $?, $!";
}
# Not going to assume that system perl is yet new enough to have autodie