fs: fstat shouldn't follow the symbol link

since the decision is already done at open time(from path to fd)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Idc1df3c1d7fe60927b0643173f3f40895aaffd4c
This commit is contained in:
Xiang Xiao 2021-07-11 16:28:52 +08:00 committed by Gustavo Henrique Nihei
parent 3d26c3efb6
commit d539998446

View File

@ -200,7 +200,7 @@ int file_fstat(FAR struct file *filep, FAR struct stat *buf)
{
/* The inode is part of the root pseudo file system. */
ret = inode_stat(inode, buf, 1);
ret = inode_stat(inode, buf, 0);
}
}