projects
/
BackupPC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Changed BackupPC::Lib so that user check is optional in new()
[BackupPC.git]
/
lib
/
BackupPC
/
FileZIO.pm
diff --git
a/lib/BackupPC/FileZIO.pm
b/lib/BackupPC/FileZIO.pm
index
7022896
..
e126b94
100644
(file)
--- a/
lib/BackupPC/FileZIO.pm
+++ b/
lib/BackupPC/FileZIO.pm
@@
-29,7
+29,7
@@
#
#========================================================================
#
#
#========================================================================
#
-# Version 2.0.0
_CVS, released 3 Feb
2003.
+# Version 2.0.0
beta2, released 13 Apr
2003.
#
# See http://backuppc.sourceforge.net.
#
#
# See http://backuppc.sourceforge.net.
#
@@
-246,6
+246,7
@@
sub write
my $n = length($$dataRef);
return if ( !$self->{write} );
my $n = length($$dataRef);
return if ( !$self->{write} );
+ print($$dataRef) if ( $self->{writeTeeStdout} );
return 0 if ( $n == 0 );
if ( !$self->{compress} ) {
#
return 0 if ( $n == 0 );
if ( !$self->{compress} ) {
#
@@
-303,6
+304,14
@@
sub name
return $self->{name};
}
return $self->{name};
}
+sub writeTeeStdout
+{
+ my($self, $param) = @_;
+
+ $self->{writeTeeStdout} = $param if ( defined($param) );
+ return $self->{writeTeeStdout};
+}
+
sub close
{
my($self) = @_;
sub close
{
my($self) = @_;