Skip to contentSkip to conversation

lsb-release: fix Distro Codename shell escaping

PATCH New [email protected] 1 participant 1 message Sep 27, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lsb-release: fix Distro Codename shell escaping

From: Sergei Zhmylev <[email protected]>

---
 meta/recipes-extended/lsb/lsb-release_1.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/lsb/lsb-release_1.4.bb +1 -1
index 00d8183a4f1..a7039ea4d19 100644
@@ -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
 }
Signature · 1 line
2.43.0