mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 04:16:35 +08: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:
committed by
Gustavo Henrique Nihei
parent
3d26c3efb6
commit
d539998446
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user