Commit eaf94a23 authored by owsla's avatar owsla

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


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@1028 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 3c20186b
New in v1.3.2 (????/??/??)
---------------------------
Don't crash when filesystem can't set ACL. Thanks to Matt Thompson for the bug
report. (Andrew Ferguson)
Fix Security Error when performing non-backup operations on Windows. Thanks to
Tommy Keene for the bug report. (Andrew Ferguson)
......
......@@ -377,7 +377,15 @@ def set_rp_acl(rp, entry_list = None, default_entry_list = None,
assert rp.conn is Globals.local_connection
if entry_list: acl = list_to_acl(entry_list, map_names)
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 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