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:
parent
3d26c3efb6
commit
d539998446
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user