git: 136a6b01d28d - main - Mk/bsd.port.mk: Fix quoting of ${COMMENT:Q} in the describe target
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 08 Sep 2022 14:10:12 UTC
The branch main has been updated by se:
URL: https://cgit.FreeBSD.org/ports/commit/?id=136a6b01d28d42af48130ed231c302e104f52ec2
commit 136a6b01d28d42af48130ed231c302e104f52ec2
Author: Stefan Eßer <se@FreeBSD.org>
AuthorDate: 2022-09-08 14:03:19 +0000
Commit: Stefan Eßer <se@FreeBSD.org>
CommitDate: 2022-09-08 14:03:19 +0000
Mk/bsd.port.mk: Fix quoting of ${COMMENT:Q} in the describe target
The contents of COMMENT will be adequately protected against
interpretation by the shell due to the :Q modifier.
This access to the COMMENT variable should therefore not be enclosed
in double quotes.
Approved by: portmgr (implicit)
---
Mk/bsd.port.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index e080b81a64d8..e4389d7fc88c 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -4366,7 +4366,7 @@ INDEX_OUT=/dev/stdout
. if empty(FLAVORS) || defined(_DESCRIBE_WITH_FLAVOR)
describe:
- @(${ECHO_CMD} "${PKGNAME}|${.CURDIR}|${PREFIX}|${COMMENT:Q}|${_DESCR}|${MAINTAINER}|${CATEGORIES}|${_EXTRACT_DEPENDS}|${_PATCH_DEPENDS}|${_FETCH_DEPENDS}|${_BUILD_DEPENDS:O:u}|${_RUN_DEPENDS:O:u}|${_WWW}" >> ${INDEX_OUT})
+ @(${ECHO_CMD} "${PKGNAME}|${.CURDIR}|${PREFIX}|"${COMMENT:Q}"|${_DESCR}|${MAINTAINER}|${CATEGORIES}|${_EXTRACT_DEPENDS}|${_PATCH_DEPENDS}|${_FETCH_DEPENDS}|${_BUILD_DEPENDS:O:u}|${_RUN_DEPENDS:O:u}|${_WWW}" >> ${INDEX_OUT})
. else # empty(FLAVORS)
describe: ${FLAVORS:S/^/describe-/}
. for f in ${FLAVORS}