From 134ff0b4da7c00c6b7763efacb36acb2581e1f2c Mon Sep 17 00:00:00 2001 From: owsla Date: Fri, 19 Dec 2008 03:07:18 +0000 Subject: 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 --- rdiff-backup/CHANGELOG | 3 +++ rdiff-backup/rdiff_backup/rpath.py | 2 ++ 2 files changed, 5 insertions(+) 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) -- cgit v1.2.1