Commit eedc7519 authored by owsla's avatar owsla

Handle exception when get permission denied on a file while trying

to establish case sensitivity on read-only side.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@817 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent b8d150ae
New in v1.1.12 (????/??/??)
---------------------------
Handle exception when get permission denied on a file while trying
to establish case sensitivity on read-only side. (Andrew Ferguson)
Finally solve AttributeError due to no 'inc_compressed' attribute
that occured during some regress operations. (Andrew Ferguson)
......
......@@ -277,7 +277,10 @@ class FSAbilities:
def test_triple(dir_rp, dirlist, filename):
"""Return 1 if filename shows system case sensitive"""
letter_rp = dir_rp.append(filename)
try:
letter_rp = dir_rp.append(filename)
except OSError:
return 0
assert letter_rp.lstat(), letter_rp
swapped = filename.swapcase()
if swapped in dirlist: return 1
......
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