fractalcells / ansible-iocage

BSD 2-Clause "Simplified" License
36 stars 27 forks source link

Ensure that 'iocage exec' treats 'cmd' as opaque #22

Closed kpfleming closed 4 years ago

kpfleming commented 4 years ago

When the string provided to 'cmd' for the 'exec' mode contains options which match iocage's options, iocage absorbs them instead of passing them along. This patch adds '--' in the correct position in the 'iocage exec' command string to ensure that iocage treats everything afterwards as the command to be executed.

Signed-off-by: Kevin P. Fleming kevin@km6g.us

kpfleming commented 4 years ago

This bug was found when a command being executed contained an option of -f, which is also an option for iocage itself.