This commit is contained in:
purplerain 2023-06-14 16:38:06 +00:00
parent bfc16459ac
commit 482636fd24
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
12 changed files with 89 additions and 93 deletions

View file

@ -1,6 +1,6 @@
#! /usr/bin/perl
# $OpenBSD: inject-badsum,v 1.1 2019/08/02 14:57:53 espie Exp $
# $OpenBSD: inject-badsum,v 1.2 2023/06/14 07:52:37 espie Exp $
use strict;
use warnings;
@ -14,7 +14,7 @@ wrap('digest_file',
my $original = shift;
if ($_[1] =~ m,/a$,) {
my $self = shift;
my $d = $self->algo;
my $d = $self->_algo;
$d->addfile("/dev/null");
return $d->digest;
} else {