tools/tree-diff: strip NULL character from selinux xattr
This commit is contained in:
parent
fd2a20d247
commit
5edac4ee58
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ def selinux_diff(path1, path2, path, differences):
|
|||
return True
|
||||
if label1 != label2:
|
||||
props = differences.setdefault(path, {})
|
||||
props["selinux"] = [os.fsdecode(label1), os.fsdecode(label2)]
|
||||
props["selinux"] = [label1.strip('\n\0'), label2.strip('\n\0')]
|
||||
return False
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue