- acl.delfacl: fix position of -X option to setfacl

This commit is contained in:
Joerg Reuter 2016-10-12 13:02:38 +02:00 committed by Pablo Suárez Hernández
parent 3dfed6b841
commit ffca0d491c

View file

@ -250,10 +250,12 @@ def delfacl(acl_type, acl_name='', *args, **kwargs):
_raise_on_no_files(*args)
cmd = 'setfacl -x'
cmd = 'setfacl'
if recursive:
cmd += ' -R'
cmd += ' -x'
cmd = '{0} {1}:{2}'.format(cmd, _acl_prefix(acl_type), acl_name)
for dentry in args: