Fix physical walk on acl module for Linux

`-h` is for BSD [1] while `-P`/`--physical` is for Linux [2].
This commit fixes that option now that acl module is (temporarily)
only supported for Linux.
I will re-add `-h` when fixing BSD support.

[1]: http://www.freebsd.org/cgi/man.cgi?format=html&query=setfacl(1)
[2]: http://linuxcommand.org/man_pages/setfacl1.html
This commit is contained in:
Jérémie Astori 2015-08-20 23:35:53 +00:00 committed by Matt Clay
parent 186cc7cb17
commit 6695cc5c21

View file

@ -172,7 +172,7 @@ def build_command(module, mode, path, follow, default, recursive, entry=''):
cmd.append('--recursive') cmd.append('--recursive')
if not follow: if not follow:
cmd.append('-h') cmd.append('--physical')
if default: if default:
if(mode == 'rm'): if(mode == 'rm'):