mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-02 14:33:21 -07:00
flatpak: Build commands as lists instead of strings (#269)
Using a list ensures that all subprocess arguments are correctly escaped. By building strings and then calling .split(), potential arguments with a space will be incorrectly split over two arguments. When a string is needed for presentation, join to the list to build the string.
This commit is contained in:
parent
06769c4e69
commit
159e2bb734
3 changed files with 16 additions and 18 deletions
2
changelogs/fragments/269-flatpak-command-list.yaml
Normal file
2
changelogs/fragments/269-flatpak-command-list.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- flatpak and flatpak_remote - fix command line construction to build commands as lists instead of strings.
|
Loading…
Add table
Add a link
Reference in a new issue