summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2009-01-27 18:12:50 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2009-01-27 18:12:50 +0000
commitec98c127acba07a2efc5838a1a9570ee26377abe (patch)
treec4c48a9bc13e6a183b0f522cadf2e3dded787201
parentc0384b4014a15aebc0502a8b9c211e49ea72a666 (diff)
downloadrdiff-backup-ec98c127acba07a2efc5838a1a9570ee26377abe.tar.gz
Filename too long errors on Windows are not always ENAMETOOLONG
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@1013 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/CHANGELOG5
-rw-r--r--rdiff-backup/rdiff_backup/longname.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG
index 3673e88..b458a43 100644
--- a/rdiff-backup/CHANGELOG
+++ b/rdiff-backup/CHANGELOG
@@ -1,6 +1,9 @@
-New in v1.3.1 (????/??/??)
+New in v1.3.1 (2009/01/27)
---------------------------
+Improve support for handling too long filenames under Windows. Too long
+directory names and paths are still a problem. (Andrew Ferguson)
+
Print more helpful error messages when the remote command cannot be started
on Windows. Thanks to Dominic for the bug report. (Andrew Ferguson)
diff --git a/rdiff-backup/rdiff_backup/longname.py b/rdiff-backup/rdiff_backup/longname.py
index 0cfcaf3..e8872ce 100644
--- a/rdiff-backup/rdiff_backup/longname.py
+++ b/rdiff-backup/rdiff_backup/longname.py
@@ -113,6 +113,8 @@ def check_new_index(base, index, make_dirs = 0):
if (errno.errorcode.has_key(exc[0]) and
errno.errorcode[exc[0]] == 'ENAMETOOLONG'):
return None
+ if (exc[1] == "The filename or extension is too long"):
+ return None
raise
return result