]> git.ipfire.org Git - thirdparty/systemd.git/commit
xdg-autostart-service: Fix binary escaping and simplify code a bit
authorBenjamin Berg <bberg@redhat.com>
Thu, 24 Mar 2022 12:00:59 +0000 (13:00 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 25 Mar 2022 05:50:41 +0000 (14:50 +0900)
commitc2b42ec413aefe05681c20f294662cab11d89320
tree41ad542756d03d4d543991d47eea6d2fe38838db
parent8603a229e91e2500366f1f1ad2e437150b19c40d
xdg-autostart-service: Fix binary escaping and simplify code a bit

Instead of escaping each component separately, we can instead use
quote_command_line. Doing so simplifies the code and fixes an issue
where spaces inside the executable name were not escaped.

Co-Authored-By: David Edmundson <kde@davidedmundson.co.uk>
src/xdg-autostart-generator/test-xdg-autostart.c
src/xdg-autostart-generator/xdg-autostart-service.c