Commit 47c00846 authored by topjohnwu's avatar topjohnwu

Fix cache mount bug

parent 54e6a790
...@@ -418,7 +418,7 @@ static void simple_mount(const char *path) { ...@@ -418,7 +418,7 @@ static void simple_mount(const char *path) {
free(new_path); free(new_path);
} else if (entry->d_type == DT_REG) { } else if (entry->d_type == DT_REG) {
// Actual file path // 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 all attributes
clone_attr(buf2, buf); clone_attr(buf2, buf);
// Finally, mount the file // Finally, mount the file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment