summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorKlemens Nanni <klemens@posteo.de>2025-01-12 14:47:30 +0300
committerGitHub <noreply@github.com>2025-01-12 12:47:30 +0100
commitafffa89ec53b44f017bfb6a315e8b08a2ed85bac (patch)
tree45e66c2f86ef0eeec9c84d718d89ebf8a5d5c238 /pkgs/development/python-modules/rangehttpserver
parentd361bb4bb4d371743fcacda074eb08caa7f65ef2 (diff)
ssh: Fix environment variable parsing (#177503)
From systemctl(1)'s `show-environment`: [...] If no special characters or whitespace is present in the variable values, no escaping is performed, and the assignments have the form "VARIABLE=value". If whitespace or characters which have special meaning to the shell are present, dollar-single-quote escaping is used, and assignments have the form "VARIABLE=$'value'". [...] `DISPLAY` is unlikely to require such escaping, but is still broken and overly complicated. Just rely on the fact that systemctl outputs line that are safe to be interpreted by the shell. Filter for `DISPLAY` and `eval` the output instead of trying to parse just the value part and reassign it again.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions