summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.lib
diff options
context:
space:
mode:
authorRouven Czerwinski <r.czerwinski@pengutronix.de>2023-07-19 15:46:30 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-07-26 12:14:44 +0200
commitd2ce16272a147ffec6e75cf8519f240310180475 (patch)
tree094937b57ac08557ea471cc9f31d49be1909751d /scripts/Makefile.lib
parentebc135ee21ee5fda376571d154c23588b7200836 (diff)
downloadbarebox-d2ce16272a147ffec6e75cf8519f240310180475.tar.gz
barebox-d2ce16272a147ffec6e75cf8519f240310180475.tar.xz
rsa: escape pkcs11 string passed to RSA command
Escape the pkcs11 string that can be passed to the rsatoc script. Otherwise the sh -c invocation for commands will interpret the pkcs11 URI semicolon separator as the end of the command. Fixes: b39100bcea12 ("rsa: Allow to directly compile in rsa public keys") Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Link: https://lore.barebox.org/20230719134630.174215-1-r.czerwinski@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r--scripts/Makefile.lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index f04c09f9e2..fe77c83ba2 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -625,7 +625,7 @@ quiet_cmd_b64dec = B64DEC $@
# target file.
quiet_cmd_rsa_keys = RSAKEY $@
cmd_rsa_keys = \
- $(objtree)/scripts/rsatoc -o $@.tmp $(2) && \
+ $(objtree)/scripts/rsatoc -o $@.tmp "$(2)" && \
if cmp -s $@.tmp $@; then \
rm $@.tmp; \
else \