openbsd-ports/databases/mysql-zrm/patches/patch-usr_bin_mysql-zrm-backup

22 lines
762 B
Plaintext
Raw Normal View History

$OpenBSD: patch-usr_bin_mysql-zrm-backup,v 1.2 2008/12/22 14:44:26 giovanni Exp $
--- usr/bin/mysql-zrm-backup.orig Fri Dec 5 01:46:01 2008
+++ usr/bin/mysql-zrm-backup Fri Dec 19 11:05:27 2008
@@ -38,7 +38,7 @@ use ZRM::MySQL;
$SIG{'TERM'} = sub { $abort_flag = 1; };
-my $MD5SUM="md5sum";
+my $MD5SUM="md5";
my $MAILCMD="mail";
#Neither mysqlhotcopy not mysqldump will do a --flush-logs
@@ -1585,7 +1585,7 @@ sub totalSize()
$inputs{"synchronous-checksum"} == 1 ){
my $file = $File::Find::fullname;
if( -f $file ){
- my $x = $MD5SUM." -b "."\"$file\"";
+ my $x = $MD5SUM." -bq "."\"$file\"";
$x = &execCmdAndGetOutput($x);
if( !defined $x ){
&printError( "Could not get md5 checksum\n" );