Change the order of -R and -m in linux_acl.modfacl

Fixes #20906
This commit is contained in:
rallytime 2015-02-21 18:49:06 -07:00
parent d28a995892
commit 965d596903

View File

@ -202,9 +202,11 @@ def modfacl(acl_type, acl_name, perms, *args, **kwargs):
_raise_on_no_files(*args) _raise_on_no_files(*args)
cmd = 'setfacl -m' cmd = 'setfacl'
if recursive: if recursive:
cmd += ' -R' cmd += ' -R' # -R must come first as -m needs the acl_* arguments that come later
cmd += ' -m'
prefix = '' prefix = ''
if acl_type.startswith('d'): if acl_type.startswith('d'):