]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic: fix env expansion for strings leading with two dollar signs
authorMichal Schmidt <mschmidt@redhat.com>
Wed, 7 Oct 2015 12:40:44 +0000 (14:40 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Wed, 7 Oct 2015 12:43:55 +0000 (14:43 +0200)
commitdf553b586b7c11fc660bb1829c339fb005bbbead
treeed79066e99ea0873a0bf7898ae667892000cdb2a
parent42911a567dc22c3115fb3ee3c56a7dcfb034f102
basic: fix env expansion for strings leading with two dollar signs

The way to escape a literal dollar sign is to write "$$". But this does
not work right if it's at the beginning of the argument. Fix it.
src/basic/env-util.c
src/test/test-env-replace.c