Fix cache mount bug

This commit is contained in:
topjohnwu 2017-06-30 21:49:35 +08:00
parent 54e6a790cf
commit 47c0084641

View File

@ -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