diff options
author | Jingbo Xu <jefflexu@linux.alibaba.com> | 2023-08-23 15:15:08 +0800 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2023-08-25 01:53:49 +0800 |
commit | 3d8b8d456f505b4d369ab397235f67dbdac12a38 (patch) | |
tree | 640999f259d98f84d498dc98f717e94c5fa5bc2b | |
parent | 88a43ec74514b311773c3a0824e0344c2687c593 (diff) | |
download | erofs-utils-3d8b8d456f505b4d369ab397235f67dbdac12a38.tar.gz |
erofs-utils: lib: fix dirent type of whiteout in tarerofs
Set the correct dirent type for whiteout.
Fixes: 95d315fd7958 ("erofs-utils: introduce tarerofs")
Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230823071517.12303-2-jefflexu@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
-rw-r--r-- | lib/tar.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -694,6 +694,7 @@ new_inode: if (whout) { inode->i_mode = (inode->i_mode & ~S_IFMT) | S_IFCHR; inode->u.i_rdev = EROFS_WHITEOUT_DEV; + d->type = EROFS_FT_CHRDEV; } else { inode->i_mode = st.st_mode; if (S_ISBLK(st.st_mode) || S_ISCHR(st.st_mode)) |