erofs-utils: mkfs: don't skip `lost+found`
PATCH 1/1 erofs-utils: mkfs: don't skip `lost+found`
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(-)
lib/inode.c +1 -2
@@ -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 */
Signature · 1 line
2.24.4