mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user