Commit c965b044 authored by bescoto's avatar bescoto

UnboundLocal fix for set_extended_filenames


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@744 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 851c9ba1
......@@ -201,11 +201,12 @@ class FSAbilities:
# Try a UTF-8 encoded character
extended_filename = ':\\ ' + chr(225) + chr(132) + chr(137)
ext_rp = None
try:
ext_rp = subdir.append(extended_filename)
ext_rp.touch()
except (IOError, OSError):
assert not ext_rp.lstat()
if ext_rp: assert not ext_rp.lstat()
self.extended_filenames = 0
else:
assert ext_rp.lstat()
......
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