]> git.ipfire.org Git - thirdparty/dracut.git/commit
str_replace() fix
authorMichal Soltys <soltys@ziu.info>
Thu, 15 Sep 2011 06:45:57 +0000 (08:45 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 22 Sep 2011 13:46:11 +0000 (15:46 +0200)
commitcb288154050ff5293bc9a0a72953cd2b93782abb
tree0a16255b9c1606d03cc4db37e51a3eefeea76eb8
parent76f5fa549c483a7a38e4757578480096b94615ac
str_replace() fix

Whitespace removal in:

out="${out}${chop# }$r"

will damage certain strings, for example the following call:

str_replace ' aax aaxaa' x y

would return 'aayaayaa' instead of ' aay aayaa'.

Signed-off-by: Michal Soltys <soltys@ziu.info>
modules.d/99base/dracut-lib.sh