mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
- acl.delfacl: fix position of -X option to setfacl
This commit is contained in:
parent
3dfed6b841
commit
ffca0d491c
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue