mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
ntfs: fix incorrect size of symbolic link
This patch fixes the issue where a symbolic link size is displayed as 0. Cc: stable@vger.kernel.org # v7.1 Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
parent
5aec1efb11
commit
05a5ff86a7
|
|
@ -1199,6 +1199,9 @@ static int ntfs_read_locked_inode(struct inode *vi)
|
|||
else
|
||||
vi->i_blocks = ni->allocated_size >> 9;
|
||||
|
||||
if (S_ISLNK(vi->i_mode) && ni->target)
|
||||
vi->i_size = strlen(ni->target);
|
||||
|
||||
ntfs_debug("Done.");
|
||||
return 0;
|
||||
unm_err_out:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user