From 3a79b95bd16d0835bf1b8124be71d404382d2237 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 9 Jan 2015 12:41:54 +0300 Subject: [PATCH] system/mtdutils/mkfs.jffs2.cpp: do not skip mounted /var --- src/system/mtdutils/mkfs.jffs2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }