X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FXfer%2FRsyncFileIO.pm;h=44a61ad61e8ed77b501d79893c0f199430c9a6ae;hp=87c50bca8b2af5d481f3952ee049b26a131a938c;hb=0697368bbcef14908cd4684cf07744dc840464de;hpb=3dc33e5f39430031766adf3c5bb2ffc649ee9100 diff --git a/lib/BackupPC/Xfer/RsyncFileIO.pm b/lib/BackupPC/Xfer/RsyncFileIO.pm index 87c50bc..44a61ad 100644 --- a/lib/BackupPC/Xfer/RsyncFileIO.pm +++ b/lib/BackupPC/Xfer/RsyncFileIO.pm @@ -12,7 +12,7 @@ # #======================================================================== # -# Version 1.6.0_CVS, released 10 Dec 2002. +# Version 2.0.0_CVS, released 18 Jan 2003. # # See http://backuppc.sourceforge.net. # @@ -77,7 +77,7 @@ sub new $fio->{shareM} = $fio->{bpc}->fileNameEltMangle($fio->{share}); $fio->{outDir} = "$fio->{xfer}{outDir}/new/"; $fio->{outDirSh} = "$fio->{outDir}/$fio->{shareM}/"; - $fio->{view} = BackupPC::View->new($fio->{bpc}, $fio->{host}, + $fio->{view} = BackupPC::View->new($fio->{bpc}, $fio->{client}, $fio->{backups}); $fio->{full} = $fio->{xfer}{type} eq "full" ? 1 : 0; $fio->{newFilesFH} = $fio->{xfer}{newFilesFH}; @@ -723,7 +723,7 @@ sub fileDeltaRxNext # unlink("$fio->{outDirSh}RStmp") if ( -f "$fio->{outDirSh}RStmp" ); - if ( open(F, ">+$fio->{outDirSh}RStmp") ) { + if ( open(F, ">+", "$fio->{outDirSh}RStmp") ) { my $data; while ( $fh->read(\$data, 1024 * 1024) > 0 ) { if ( syswrite(F, $data) != length($data) ) { @@ -744,7 +744,7 @@ sub fileDeltaRxNext } $fh->close; } else { - if ( open(F, $attr->{fullPath}) ) { + if ( open(F, "<", $attr->{fullPath}) ) { $fio->{rxInFd} = *F; $fio->{rxInName} = $attr->{fullPath}; } else {