system/mtdutils/mkfs.jffs2.cpp: do not skip mounted /var

This commit is contained in:
[CST] Focus
2015-01-09 12:41:54 +03:00
parent f04e22befe
commit 3a79b95bd1

View File

@@ -1057,7 +1057,7 @@ struct filesystem_entry *CMkfsJFFS2::recursive_add_host_directory(
skipCheck = true;
}
if ((!skipCheck) && (sb.st_dev != dev_x[dev_jffs2])) /* jffs2 */
if ((!skipCheck) && (sb.st_dev != dev_x[dev_jffs2]) && !(strstr(targetpath, "/var") == targetpath)) /* jffs2 */
return NULL;
}