It's somewhat strange to skip the `lost+found` directory.
Fixes: a17497f0844a ("erofs-utils: introduce inode operations")
Signed-off-by: Gao Xiang <[email protected]>
---
lib/inode.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/inode.c b/lib/inode.c
index 87613c6..6fd28a2 100644
--- a/lib/inode.c
+++ b/lib/inode.c
@@ -1082,8 +1082,7 @@ static struct erofs_inode *erofs_mkfs_build_tree(struct
erofs_inode *dir)
if (!dp)
break;
- if (is_dot_dotdot(dp->d_name) ||
- !strncmp(dp->d_name, "lost+found", strlen("lost+found")))
+ if (is_dot_dotdot(dp->d_name))
continue;
/* skip if it's a exclude file */
--
2.24.4