]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
lsb-release: fix Distro Codename shell escaping
authorSergei Zhmylev <s.zhmylev@yadro.com>
Fri, 27 Sep 2024 15:31:20 +0000 (18:31 +0300)
committerSteve Sakoman <steve@sakoman.com>
Tue, 22 Oct 2024 19:08:39 +0000 (12:08 -0700)
Signed-off-by: Sergei Zhmylev <s.zhmylev@yadro.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7b5824c547b1348713e992a8bebd40577a0c5709)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-extended/lsb/lsb-release_1.4.bb

index 00d8183a4f1eecdf35f1583201e4d4ef628638fc..a7039ea4d19a3cfb6033a5806809a26fd5f47f91 100644 (file)
@@ -29,7 +29,7 @@ do_install() {
        echo "DISTRIB_ID=${DISTRO}" >> ${D}${sysconfdir}/lsb-release
        echo "DISTRIB_RELEASE=${DISTRO_VERSION}" >> ${D}${sysconfdir}/lsb-release
        if [ -n "${DISTRO_CODENAME}" ]; then
-               echo "DISTRIB_CODENAME=${DISTRO_CODENAME}" >> ${D}${sysconfdir}/lsb-release
+               echo "DISTRIB_CODENAME=\"${DISTRO_CODENAME}\"" >> ${D}${sysconfdir}/lsb-release
        fi
        echo "DISTRIB_DESCRIPTION=\"${DISTRO_NAME} ${DISTRO_VERSION}\"" >> ${D}${sysconfdir}/lsb-release
 }