X-Git-Url: http://git.rot13.org//?a=blobdiff_plain;f=bin%2FBackupPC_tarExtract;h=17e28f5f41dddb1530f71a76adbc275cb846df7a;hb=329e870f56fb6572fa697998d33676588034c149;hp=bdd506bead2e59ec64e856387899c9845e6f8efb;hpb=3ec73efe5ee035c9cda24dc70500157e455d9c84;p=BackupPC.git diff --git a/bin/BackupPC_tarExtract b/bin/BackupPC_tarExtract index bdd506b..17e28f5 100755 --- a/bin/BackupPC_tarExtract +++ b/bin/BackupPC_tarExtract @@ -9,7 +9,7 @@ # Craig Barratt # # COPYRIGHT -# Copyright (C) 2001 Craig Barratt +# Copyright (C) 2001-2003 Craig Barratt # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -27,13 +27,14 @@ # #======================================================================== # -# Version 2.0.0beta2, released 13 Apr 2003. +# Version 2.1.0_CVS, released 3 Jul 2003. # # See http://backuppc.sourceforge.net. # #======================================================================== use strict; +no utf8; use lib "/usr/local/BackupPC/lib"; use BackupPC::Lib; use BackupPC::Attrib qw(:all); @@ -374,6 +375,7 @@ sub processClose mkpath("$OutDir/$ShareName", 0, 0777); open(NEW_FILES, ">>", "$TopDir/pc/$host/NewFileList") || die("can't open $TopDir/pc/$host/NewFileList"); +binmode(NEW_FILES); binmode(STDIN); 1 while ( TarReadFile(*STDIN) ); 1 while ( sysread(STDIN, my $discard, 1024) );