X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2FWINNT%2Fafsd%2Fsmb3.c;h=be166be99f5656fa82fc9fb6c7a59faa291958a3;hp=68d398d7860b3940e9fe2dacecee0df7dca65cd5;hb=a09a1709f646087c2ceb6f484b45b48495ea1127;hpb=f18b54bfe647cfee6a7072d11df04019161d8223 diff --git a/src/WINNT/afsd/smb3.c b/src/WINNT/afsd/smb3.c index 68d398d..be166be 100644 --- a/src/WINNT/afsd/smb3.c +++ b/src/WINNT/afsd/smb3.c @@ -2746,6 +2746,7 @@ long smb_ReceiveTran2QFSInfo(smb_vc_t *vcp, smb_tran2Packet_t *p, smb_packet_t * /* attributes, defined in WINNT.H: * FILE_CASE_SENSITIVE_SEARCH 0x1 * FILE_CASE_PRESERVED_NAMES 0x2 + * FILE_UNICODE_ON_DISK 0x4 * FILE_VOLUME_QUOTAS 0x10 * 0x4000 * If bit 0x4000 is not set, Windows 95 thinks @@ -2755,6 +2756,8 @@ long smb_ReceiveTran2QFSInfo(smb_vc_t *vcp, smb_tran2Packet_t *p, smb_packet_t * qi.u.FSattributeInfo.attributes = 0x4003; /* The maxCompLength is supposed to be in bytes */ #ifdef SMB_UNICODE + qi.u.FSattributeInfo.attributes |= 0x04; + if ((vcp->flags & SMB_VCFLAG_USEUNICODE) == SMB_VCFLAG_USEUNICODE) qi.u.FSattributeInfo.maxCompLength = MAX_PATH * sizeof(wchar_t); else {