View | Details | Raw Unified
Collapse All | Expand All

(-) mysql-4.0.18.orig/scripts/mysqlhotcopy.sh (-1 / +2 lines)
 Lines 636-642    Link Here 
    elsif ($opt{method} eq 'scp')
    elsif ($opt{method} eq 'scp')
    {
    {
      my $tmp=$tmpfile;
      my $tmp=$tmpfile;
      open(OUTPUT,">$tmp") || die "Can\'t create file $tmp: $!\n";
      use Fcntl;
      sysopen(OUTPUT,$tmp,O_WRONLY|O_EXCL|O_CREAT) || die "Can\'t create file $tmp: $!\n";
      if (syswrite(OUTPUT,$buff) != length($buff))
      if (syswrite(OUTPUT,$buff) != length($buff))
      {
      {
	die "Error when writing data to $tmp: $!\n";
	die "Error when writing data to $tmp: $!\n";