diff --git a/src/system/mtdutils/mkfs.jffs2.cpp b/src/system/mtdutils/mkfs.jffs2.cpp index 1f81b0878..2e876065f 100644 --- a/src/system/mtdutils/mkfs.jffs2.cpp +++ b/src/system/mtdutils/mkfs.jffs2.cpp @@ -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; }