mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
vfs/dirread: Should return the same file type as lstat
by extend the possible value of d_type for the special file Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Abdelatif Guettouche
parent
91ed14c631
commit
67ef70d460
@@ -943,6 +943,11 @@ static int romfs_readdir(FAR struct inode *mountpt,
|
||||
dir->fd_dir.d_type = DTYPE_FILE;
|
||||
break;
|
||||
}
|
||||
else if (IS_SOFTLINK(next))
|
||||
{
|
||||
dir->fd_dir.d_type = DTYPE_LINK;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
errout_with_semaphore:
|
||||
|
||||
Reference in New Issue
Block a user