Return proper length of _PC_NAME_MAX value if long names support is enabled.

Obtained from:	Mac OS X
MFC after:	1 week
This commit is contained in:
bp 2001-08-21 08:25:09 +00:00
parent a333ea9b9d
commit 078a22aae0

View File

@ -859,7 +859,7 @@ smbfs_pathconf (ap)
*retval = 0;
break;
case _PC_NAME_MAX:
*retval = (vcp->vc_flags & SMBV_LONGNAMES) ? 255 : 12;
*retval = (vcp->vc_hflags2 & SMB_FLAGS2_KNOWS_LONG_NAMES) ? 255 : 12;
break;
case _PC_PATH_MAX:
*retval = 800; /* XXX: a correct one ? */