summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-12-19 03:07:18 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-12-19 03:07:18 +0000
commit134ff0b4da7c00c6b7763efacb36acb2581e1f2c (patch)
treeffd3dfa37e6b3abccf8507f081fb74f13c0a790d
parent0df373916228ec5bc7d9943163d541bba8046417 (diff)
downloadrdiff-backup-134ff0b4da7c00c6b7763efacb36acb2581e1f2c.tar.gz
Print a more helpful error message if we cannot read the backup destination.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@972 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/CHANGELOG3
-rw-r--r--rdiff-backup/rdiff_backup/rpath.py2
2 files changed, 5 insertions, 0 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG
index 22fca75..1c885b1 100644
--- a/rdiff-backup/CHANGELOG
+++ b/rdiff-backup/CHANGELOG
@@ -1,6 +1,9 @@
New in v1.2.3 (????/??/??)
---------------------------
+Print a more helpful error message if we cannot read the backup destination.
+Closes Ubuntu bug #292586 (again). (Andrew Ferguson)
+
Print a more helpful error message if we cannot write to the backup
destination. (Andrew Ferguson)
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py
index d657c1c..3655084 100644
--- a/rdiff-backup/rdiff_backup/rpath.py
+++ b/rdiff-backup/rdiff_backup/rpath.py
@@ -255,6 +255,8 @@ def rename(rp_source, rp_dest):
try:
rp_source.conn.os.rename(rp_source.path, rp_dest.path)
except OSError, error:
+ # XXX errno.EINVAL and len(rp_dest.path) >= 260 indicates
+ # pathname too long on Windows
if error.errno != errno.EEXIST:
log.Log("OSError while renaming %s to %s"
% (rp_source.path, rp_dest.path), 1)