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:
Michael Jung 2017-12-17 06:43:30 -06:00 committed by Gregory Nutt
parent a1e250697c
commit 223104a6b4

View File

@ -2638,7 +2638,7 @@ static void nfs_stat_common(FAR struct nfs_statinfo_s *info,
/* Now OR in the file type */ /* Now OR in the file type */
switch (info->ns_mode) switch (info->ns_type)
{ {
default: default:
case NFNON: /* Unknown type */ case NFNON: /* Unknown type */