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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 20 Sep 2020 10:00:48 +0000 (12:00 +0200)
commit4d1922d8bb42540b20ede62958d8b4d426f86b5d
tree8c2a6b409417f217b9d5fa686a542e9b202be4f7
parent281581cd7437dac5a3f787b7ea73b0bab53bd1e6
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
(cherry picked from commit de008e537dc6e3504f988fa9bd358f783016df8a)
src/basic/env-file.c