mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 10:10:00 +00:00
sload.f2fs: fix the missing of bit mask for file type
Fix the missing of bit mask for the file type bit fields. Signed-off-by: Junling Zheng <zhengjunling@huawei.com> Signed-off-by: Sheng Yong <shengyong1@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
2b241e1da9
commit
43543b9b5f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user