Commit 9ceccacc authored by bescoto's avatar bescoto

false negative acl compare fix


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@702 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 011fe8d0
......@@ -4,6 +4,9 @@ New in v1.1.4 (????/??/??)
Quoting should be enabled only as needed between case-sensitive and
non-case-sensitive systems (thanks for Andrew Ferguson for report).
Files with ACLs will not be unnecessarily marked as changed (bug
report by Carsten Lorenz).
New in v1.1.3 (2005/11/25)
--------------------------
......
......@@ -271,7 +271,7 @@ class AccessControlLists:
def cmp_entry_list(self, l1, l2):
"""True if the lists have same entries. Assume preordered"""
if not l1: return l1 == l2
if not l1: return not l2
if not l2 or len(l1) != len(l2): return 0
for i in range(len(l1)):
type1, namepair1, perms1 = l1[i]
......
......@@ -496,6 +496,18 @@ other::---""")
else: assert 0, "Above should have exited with fatal error"
Globals.never_drop_acls = None
def test_nochange(self):
"""Make sure files with ACLs not unnecessarily flagged changed"""
self.make_temp()
self.make_backup_dirs()
rdiff_backup(1, 1, self.acl_testdir1.path, tempdir.path,
current_time = 10000)
rdiff_backup(1, 1, self.acl_testdir1.path, tempdir.path,
current_time = 20000)
incdir = tempdir.append('rdiff-backup-data').append('increments')
assert incdir.isdir(), incdir
assert not incdir.listdir(), incdir.listdir()
class CombinedTest(unittest.TestCase):
"""Test backing up and restoring directories with both EAs and ACLs"""
......
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