summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordgaudet <dgaudet@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-04-22 16:12:57 +0000
committerdgaudet <dgaudet@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-04-22 16:12:57 +0000
commit24d7fd59dac08488ac94f80cfa586f90b619698b (patch)
tree0474f85a5ecf8dc05c93eb5e52cd9f8782d37a79
parent170251a1b652818544fd5ba84585698841310a32 (diff)
downloadrdiff-backup-24d7fd59dac08488ac94f80cfa586f90b619698b.tar.gz
Filenames in the file_statistics*gz files are now quoted the same way
as filenames in the metadata file (LF => \n and \ => \\). git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@584 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/CHANGELOG2
-rw-r--r--rdiff-backup/rdiff_backup/statistics.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG
index 1aeaeb2..a3eef2a 100644
--- a/rdiff-backup/CHANGELOG
+++ b/rdiff-backup/CHANGELOG
@@ -4,6 +4,8 @@ New in v0.13.7 (????/??/??)
Handle cases of junk uid/gids better on 64bit systems. (Bug report by
Nick Bailey)
+Filenames in the file_statistics*gz files are now quoted the same way
+as filenames in the metadata file (LF => \n and \ => \\).
New in v0.13.6 (2005/04/07)
---------------------------
diff --git a/rdiff-backup/rdiff_backup/statistics.py b/rdiff-backup/rdiff_backup/statistics.py
index c381473..b16fb12 100644
--- a/rdiff-backup/rdiff_backup/statistics.py
+++ b/rdiff-backup/rdiff_backup/statistics.py
@@ -20,7 +20,7 @@
"""Generate and process aggregated backup information"""
import re, os, time
-import Globals, Time, increment, log, static
+import Globals, Time, increment, log, static, metadata
class StatsException(Exception): pass
@@ -381,6 +381,7 @@ class FileStats:
"""Update file stats with given information"""
if source_rorp: filename = source_rorp.get_indexpath()
else: filename = dest_rorp.get_indexpath()
+ filename = metadata.quote_path(filename)
size_list = map(cls.get_size, [source_rorp, dest_rorp, inc])
line = " ".join([filename, str(changed)] + size_list)