Skip to content
Snippets Groups Projects
Verified Commit 6812c225 authored by Baptiste Daroussin's avatar Baptiste Daroussin Committed by Mattia Rizzolo
Browse files

comparators/directory: add compatibily with FreeBSD's getfacl


getfacl has incomaptible option list between Linux and FreeBSD, so
change the call depending on the OS.

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 76b5c2b0
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,11 @@ def lsattr(path):
class Getfacl(Command):
@tool_required('getfacl')
def cmdline(self):
return ['getfacl', '-p', '-c', self.path]
osname = os.uname()[0]
if osname == 'FreeBSD':
return ['getfacl', '-q', '-h', self.path]
else:
return ['getfacl', '-p', '-c', self.path]
def compare_meta(path1, path2):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment