Skip to content

Commit

Permalink
Merge pull request OpenDDS#4338 from mitza-oci/configure-md5
Browse files Browse the repository at this point in the history
configure: MD5 requires binmode for portability
  • Loading branch information
jrw972 authored Nov 7, 2023
2 parents 5e12eb0 + 39a59f8 commit fcfe7ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ sub md5sum {

my $md5 = Digest::MD5->new;
open(my $fh, $path) or die("Couldn't open \"$path\": $!");
binmode $fh;
$md5->addfile($fh);
my $hash = $md5->hexdigest();
my $failed = $expected_hash ne $hash;
Expand Down

0 comments on commit fcfe7ea

Please sign in to comment.