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

Origin commit data
------------------
Commit: 3a79b95bd1
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-01-09 (Fri, 09 Jan 2015)
This commit is contained in:
[CST] Focus
2015-01-09 12:41:54 +03:00
parent 50c59a5ad0
commit 78774d5733

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;
}