]> git.ipfire.org Git - thirdparty/systemd.git/commit
macros: use here-docs instead of echo (#8480)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Mar 2018 08:07:44 +0000 (09:07 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 19 Mar 2018 08:07:44 +0000 (17:07 +0900)
commitdd2490ae12ad1e1795ecbf8f8944b950da9c8d06
treebc084b9dd92276499cc968ae8b306a22a016b988
parentbe1bc01d117e1ec8d58e828f6ed911831d9ebc2a
macros: use here-docs instead of echo (#8480)

It's common for sysusers files to contain quotes (in particular around the
comment/GECOS field), and using echo "..." is very likely to not work properly
in that case. Let's use <<EOF redirection. It's not bulletproof, but should
work in general.
src/core/macros.systemd.in