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:
Boris Popov 2001-08-21 08:25:09 +00:00
parent 618d5e9216
commit 3419dc99dd

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 ? */