]> git.ipfire.org Git - thirdparty/systemd.git/commit
env-file: bring our decoding of double-quoted strings in env files in line with shell
authorLennart Poettering <lennart@poettering.net>
Fri, 11 Sep 2020 13:14:03 +0000 (15:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Sep 2020 09:08:43 +0000 (11:08 +0200)
commitde008e537dc6e3504f988fa9bd358f783016df8a
treec31021a1dd9ba29b4a86bcb837234e207f3c6513
parent6fe3196350fdb8715aabd315f8252c307da6661c
env-file: bring our decoding of double-quoted strings in env files in line with shell

In shell, inside of double quotes only a select few chars should be
escaped. If other chars are escaped this has no effect. Correct the list
of chars that need such escaping.

Also, make sure we can read back the stuff we wrote out without loss.

Fixes: #16788
src/basic/env-file.c