summaryrefslogtreecommitdiffstats
path: root/image-cramfs.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-02-15 14:03:24 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-03-19 15:53:26 +0100
commitcf20713886976c399639f13da2286bbe095f199a (patch)
tree047e7a2e56b82af1cbead1df6d74f63609db6b8b /image-cramfs.c
parent55f93159c2cc6afc7827d768a565d1a1e1f326a4 (diff)
downloadgenimage-cf20713886976c399639f13da2286bbe095f199a.tar.gz
genimage-cf20713886976c399639f13da2286bbe095f199a.tar.xz
image-*: Fix pathes with whitespaces
The different image handlers do not work with pathes containing whitespaces whenever an external command is invoked. Escape all pathes with quotation marks to make that work. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> [mol: fix more image types] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'image-cramfs.c')
-rw-r--r--image-cramfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/image-cramfs.c b/image-cramfs.c
index e8a0ecc..b66deb1 100644
--- a/image-cramfs.c
+++ b/image-cramfs.c
@@ -26,7 +26,7 @@ static int cram_generate(struct image *image)
{
char *extraargs = cfg_getstr(image->imagesec, "extraargs");
- return systemp(image, "%s%s%s %s %s %s",
+ return systemp(image, "%s%s%s %s '%s' '%s'",
get_opt("mkcramfs"),
image->name ? " -n " : "",
image->name ? image->name : "", /* name */