瀏覽代碼

lsb-release: fix Distro Codename shell escaping

(From OE-Core rev: bcd4e6d77dc7455a453e69b6d37769ec94cc02ad)

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>
Sergei Zhmylev 8 月之前
父節點
當前提交
beb0bbf9f6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      meta/recipes-extended/lsb/lsb-release_1.4.bb

+ 1 - 1
meta/recipes-extended/lsb/lsb-release_1.4.bb

@@ -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
 }