mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 21:18:23 +00:00
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
4e1f26700d
commit
51892dbf14
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue