projects
/
BackupPC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
show status in ps output by modifing $0
[BackupPC.git]
/
lib
/
BackupPC
/
CGI
/
Archive.pm
diff --git
a/lib/BackupPC/CGI/Archive.pm
b/lib/BackupPC/CGI/Archive.pm
index
d6e2408
..
f20bed3
100644
(file)
--- a/
lib/BackupPC/CGI/Archive.pm
+++ b/
lib/BackupPC/CGI/Archive.pm
@@
-10,7
+10,7
@@
# Craig Barratt <cbarratt@users.sourceforge.net>
#
# COPYRIGHT
# Craig Barratt <cbarratt@users.sourceforge.net>
#
# COPYRIGHT
-# Copyright (C) 2003 Craig Barratt
+# Copyright (C) 2003
-2009
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
#
# 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
@@
-28,7
+28,7
@@
#
#========================================================================
#
#
#========================================================================
#
-# Version
2.1.0, released 20 Jun 2004
.
+# Version
3.2.0, released 31 Jul 2010
.
#
# See http://backuppc.sourceforge.net.
#
#
# See http://backuppc.sourceforge.net.
#
@@
-225,12
+225,13
@@
EOF
[ \%ArchiveReq],
[qw(*ArchiveReq)]);
$archive->Indent(1);
[ \%ArchiveReq],
[qw(*ArchiveReq)]);
$archive->Indent(1);
- if ( open(REQ, ">$TopDir/pc/$archivehost/$reqFileName") ) {
+ my $openPath = "$TopDir/pc/$archivehost/$reqFileName";
+ if ( open(REQ, ">", $openPath) ) {
binmode(REQ);
print(REQ $archive->Dump);
close(REQ);
} else {
binmode(REQ);
print(REQ $archive->Dump);
close(REQ);
} else {
- ErrorExit(
$Lang->{Can_t_open_create}
);
+ ErrorExit(
eval("qq{$Lang->{Can_t_open_create__openPath}}")
);
}
$reply = $bpc->ServerMesg("archive $User $archivehost $reqFileName");
$str = eval("qq{$Lang->{Archive_requested}}");
}
$reply = $bpc->ServerMesg("archive $User $archivehost $reqFileName");
$str = eval("qq{$Lang->{Archive_requested}}");