summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-09-04 09:50:00 +0000
committerGitHub <noreply@github.com>2019-09-04 09:50:00 +0000
commitb5b455ab9e7f858ea8e9cd6f62152e97e4ce34b3 (patch)
tree15038cd1f063f1a2b316db9bb43e6752b101276a
parent3bd77db41229b731b2bd4eef244f0561e88af287 (diff)
parentf2b104aa68a0dff3f0bf6b481f9724722cb01939 (diff)
downloadgenimage-b5b455ab9e7f858ea8e9cd6f62152e97e4ce34b3.tar.gz
genimage-b5b455ab9e7f858ea8e9cd6f62152e97e4ce34b3.tar.xz
Merge pull request #69 from thirtythreeforty/fix-67
Prefix mountpoints with mp- to avoid conflict with "root"
-rw-r--r--genimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/genimage.c b/genimage.c
index ca2c6d6..aafd3b7 100644
--- a/genimage.c
+++ b/genimage.c
@@ -392,7 +392,7 @@ static struct mountpoint *add_mountpoint(const char *path)
path_sanitized = sanitize_path(path);
mp = xzalloc(sizeof(*mp));
mp->path = strdup(path);
- xasprintf(&mp->mountpath, "%s/%s", tmppath(), path_sanitized);
+ xasprintf(&mp->mountpath, "%s/mp-%s", tmppath(), path_sanitized);
list_add_tail(&mp->list, &mountpoints);
free(path_sanitized);