scripts/config: allow colons in option strings for sed
authorJeremie Francois (on alpha) <jeremie.francois@gmail.com>
Fri, 10 Apr 2020 16:57:40 +0000 (18:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 May 2020 08:29:01 +0000 (10:29 +0200)
commite6b43bda86caffea0453c6d3abb0fe55a7860b31
tree86bbf813eaf85081e423e67e2e40f9985644e686
parent3ca221d120ab13df15d39c8b854692924b8bfff6
scripts/config: allow colons in option strings for sed

[ Upstream commit e461bc9f9ab105637b86065d24b0b83f182d477c ]

Sed broke on some strings as it used colon as a separator.
I made it more robust by using \001, which is legit POSIX AFAIK.

E.g. ./config --set-str CONFIG_USBNET_DEVADDR "de:ad:be:ef:00:01"
failed with: sed: -e expression #1, char 55: unknown option to `s'

Signed-off-by: Jeremie Francois (on alpha) <jeremie.francois@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/config