Commit ca599ad8 authored by owsla's avatar owsla

Filename too long errors on Windows are not always ENAMETOOLONG


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@1013 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 6f01b5e4
New in v1.2.6 (????/??/??) New in v1.2.6 (????/??/??)
--------------------------- ---------------------------
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 Print more helpful error messages when the remote command cannot be started
on Windows. Thanks to Dominic for the bug report. (Andrew Ferguson) on Windows. Thanks to Dominic for the bug report. (Andrew Ferguson)
......
...@@ -113,6 +113,8 @@ def check_new_index(base, index, make_dirs = 0): ...@@ -113,6 +113,8 @@ def check_new_index(base, index, make_dirs = 0):
if (errno.errorcode.has_key(exc[0]) and if (errno.errorcode.has_key(exc[0]) and
errno.errorcode[exc[0]] == 'ENAMETOOLONG'): errno.errorcode[exc[0]] == 'ENAMETOOLONG'):
return None return None
if (exc[1] == "The filename or extension is too long"):
return None
raise raise
return result return result
......
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 Print more helpful error messages when the remote command cannot be started
on Windows. Thanks to Dominic for the bug report. (Andrew Ferguson) on Windows. Thanks to Dominic for the bug report. (Andrew Ferguson)
......
...@@ -113,6 +113,8 @@ def check_new_index(base, index, make_dirs = 0): ...@@ -113,6 +113,8 @@ def check_new_index(base, index, make_dirs = 0):
if (errno.errorcode.has_key(exc[0]) and if (errno.errorcode.has_key(exc[0]) and
errno.errorcode[exc[0]] == 'ENAMETOOLONG'): errno.errorcode[exc[0]] == 'ENAMETOOLONG'):
return None return None
if (exc[1] == "The filename or extension is too long"):
return None
raise raise
return result return result
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment