0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

nixos: add functions and documentation for escaping systemd Exec* directives

it's really easy to accidentally write the wrong systemd Exec* directive, ones
that works most of the time but fails when users include systemd metacharacters
in arguments that are interpolated into an Exec* directive. add a few functions
analogous to escapeShellArg{,s} and some documentation on how and when to use them.
This commit is contained in:
pennae 2022-01-09 08:46:55 +01:00
parent 74f542c42e
commit 40a35299fa
6 changed files with 157 additions and 0 deletions

0
nixos/tests/empty-file Normal file
View file