32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
$OpenBSD: patch-usr_bin_mysql-zrm-verify-backup,v 1.3 2012/03/29 09:30:05 giovanni Exp $
|
|
--- usr/bin/mysql-zrm-verify-backup.orig Thu Feb 4 01:19:25 2010
|
|
+++ usr/bin/mysql-zrm-verify-backup Thu Mar 29 11:16:27 2012
|
|
@@ -30,7 +30,7 @@ use lib "/usr/lib/mysql-zrm";
|
|
use ZRM::Common;
|
|
|
|
|
|
-my $MD5SUM="md5sum";
|
|
+my $MD5SUM="md5";
|
|
my $CHECKSUM_FILE="zrm_checksum";
|
|
my $CHECKSUM_PENDING=".checksum_pending";
|
|
|
|
@@ -55,8 +55,9 @@ sub verifyCheckSum()
|
|
$_ ne $EXTRACTED_FILENAME && $_ ne $CHECKSUM_FILE ){
|
|
my $file = $File::Find::fullname;
|
|
if( -f $file ){
|
|
- my $x = $MD5SUM." -b "."\"$file\"";
|
|
+ my $x = $MD5SUM." -q "."\"$file\"";
|
|
$x = &execCmdAndGetOutput($x);
|
|
+ chomp($x);
|
|
if( !defined $x ){
|
|
&printError( "Could not get md5 checksum\n" );
|
|
}else{
|
|
@@ -122,6 +123,7 @@ sub calculateMD5Sum()
|
|
if( -f $file ){
|
|
my $x = $MD5SUM." -b "."\"$file\"";
|
|
$x = &execCmdAndGetOutput($x);
|
|
+ chomp($x);
|
|
if( !defined $x ){
|
|
&printError( "Could not get md5 checksum\n" );
|
|
}else{
|