From 47c00846415cc96b302b85548f1a224d731b067b Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 30 Jun 2017 21:49:35 +0800 Subject: [PATCH] Fix cache mount bug --- jni/daemon/bootstages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jni/daemon/bootstages.c b/jni/daemon/bootstages.c index 035dc9670..4bd830500 100644 --- a/jni/daemon/bootstages.c +++ b/jni/daemon/bootstages.c @@ -418,7 +418,7 @@ static void simple_mount(const char *path) { free(new_path); } else if (entry->d_type == DT_REG) { // Actual file path - snprintf(buf, PATH_MAX, "%s/%s", buf, entry->d_name); + snprintf(buf, PATH_MAX, "%s%s", CACHEMOUNT, buf2); // Clone all attributes clone_attr(buf2, buf); // Finally, mount the file