diff options
author | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2008-12-19 03:07:18 +0000 |
---|---|---|
committer | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2008-12-19 03:07:18 +0000 |
commit | 134ff0b4da7c00c6b7763efacb36acb2581e1f2c (patch) | |
tree | ffd3dfa37e6b3abccf8507f081fb74f13c0a790d /rdiff-backup | |
parent | 0df373916228ec5bc7d9943163d541bba8046417 (diff) | |
download | rdiff-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
Diffstat (limited to 'rdiff-backup')
-rw-r--r-- | rdiff-backup/CHANGELOG | 3 | ||||
-rw-r--r-- | rdiff-backup/rdiff_backup/rpath.py | 2 |
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) |