fs/nfs/nfs_vfsops.c: Correctly infer file type. The file type is in struct nfs_statinfo_s's ns_type field, not in the ns_mode field.
This commit is contained in:
parent
a1e250697c
commit
223104a6b4
@ -2638,7 +2638,7 @@ static void nfs_stat_common(FAR struct nfs_statinfo_s *info,
|
||||
|
||||
/* Now OR in the file type */
|
||||
|
||||
switch (info->ns_mode)
|
||||
switch (info->ns_type)
|
||||
{
|
||||
default:
|
||||
case NFNON: /* Unknown type */
|
||||
|
Loading…
Reference in New Issue
Block a user