Commit de4d4595 authored by owsla's avatar owsla

Don't crash when filesytem can't set ACL.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@1029 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent eaf94a23
New in v1.2.7 (????/??/??) New in v1.2.7 (????/??/??)
--------------------------- ---------------------------
Don't crash when filesystem can't set ACL. Thanks to Matt Thompson for the bug
report. (Andrew Ferguson)
Properly disable hardlinks by default on Windows. Properly disable hardlinks by default on Windows.
Fix Python 2.2 compatibility. Closes Savannah bug #25529. (Andrew Ferguson) Fix Python 2.2 compatibility. Closes Savannah bug #25529. (Andrew Ferguson)
......
...@@ -377,7 +377,15 @@ def set_rp_acl(rp, entry_list = None, default_entry_list = None, ...@@ -377,7 +377,15 @@ def set_rp_acl(rp, entry_list = None, default_entry_list = None,
assert rp.conn is Globals.local_connection assert rp.conn is Globals.local_connection
if entry_list: acl = list_to_acl(entry_list, map_names) if entry_list: acl = list_to_acl(entry_list, map_names)
else: acl = posix1e.ACL() else: acl = posix1e.ACL()
acl.applyto(rp.path)
try:
acl.applyto(rp.path)
except IOError, exc:
if exc[0] == errno.EOPNOTSUPP:
log.Log("Warning: unable to set ACL on %s: %s" %
(repr(rp.path), exc), 4)
return
else: raise
if rp.isdir(): if rp.isdir():
if default_entry_list: if default_entry_list:
......
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