diff options
author | unknown <monty@mysql.com> | 2004-10-08 16:40:00 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2004-10-08 16:40:00 +0300 |
commit | aa14d7361d3bd6fd6943d8732363f392cb316a65 (patch) | |
tree | 58aef043f728310efa92720330d1d0f1346fdf2b /scripts | |
parent | c428135ec8550b62a58ac061733c6c31c277a651 (diff) | |
parent | b5f445a0e9f35809d49faee64b69f45c12e8d877 (diff) | |
download | mariadb-git-aa14d7361d3bd6fd6943d8732363f392cb316a65.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/my/mysql-4.1
BitKeeper/etc/logging_ok:
auto-union
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mysqlhotcopy.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/mysqlhotcopy.sh b/scripts/mysqlhotcopy.sh index b8494727975..2cfe91da115 100644 --- a/scripts/mysqlhotcopy.sh +++ b/scripts/mysqlhotcopy.sh @@ -8,7 +8,7 @@ use File::Path; use DBI; use Sys::Hostname; use File::Copy; -use File::Temp; +use File::Temp qw(tempfile); =head1 NAME @@ -39,7 +39,7 @@ WARNING: THIS PROGRAM IS STILL IN BETA. Comments/patches welcome. # Documentation continued at end of file -my $VERSION = "1.21"; +my $VERSION = "1.22"; my $opt_tmpdir = $ENV{TMPDIR} || "/tmp"; @@ -655,8 +655,8 @@ sub copy_index } elsif ($opt{method} =~ /^scp\b/) { - my ($fh, $tmp)=tempfile('mysqlhotcopy-XXXXXX', DIR => $opt_tmpdir); - die "Can\'t create/open file in $opt_tmpdir\n"; + my ($fh, $tmp)= tempfile('mysqlhotcopy-XXXXXX', DIR => $opt_tmpdir) or + die "Can\'t create/open file in $opt_tmpdir\n"; if (syswrite($fh,$buff) != length($buff)) { die "Error when writing data to $tmp: $!\n"; |