Fix the missing of bit mask for the file type bit fields. Signed-off-by: Junling Zheng <zhengjunl...@huawei.com> Signed-off-by: Sheng Yong <shengyo...@huawei.com> --- fsck/sload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fsck/sload.c b/fsck/sload.c index 2842f2c..1b7a2d1 100644 --- a/fsck/sload.c +++ b/fsck/sload.c @@ -157,7 +157,7 @@ static void set_inode_metadata(struct dentry *de) de->size = stat.st_size; de->mode = stat.st_mode & - (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO); + (S_IFMT|S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO); if (c.fixed_time == -1 && c.from_dir) de->mtime = stat.st_mtime; else -- 2.16.2 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel