[systemd-devel] [PATCH] fileio: quote more shell characters in envfiles

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sun Jul 13 20:09:49 PDT 2014


On Sun, Jul 13, 2014 at 06:49:00PM +0300, Mantas Mikulėnas wrote:
> Turns out, making strings shell-proof is harder than expected:
> 
>     # machinectl set-hostname "foo|poweroff" && . /etc/machine-info
> 
> (This could be simplified by quoting *and* escaping all characters,
> which is harmless in shell but unnecessary.)
Lovely :)

Applied.

Zbyszek


More information about the systemd-devel mailing list