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:
parent
618d5e9216
commit
3419dc99dd
@ -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 ? */
|
||||
|
Loading…
x
Reference in New Issue
Block a user