[CIFS] Print better error when server returns malformed QueryUnixInfo response
Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
parent
5a44b3190e
commit
1e71f25d14
|
@ -3361,6 +3361,9 @@ UnixQPathInfoRetry:
|
||||||
rc = validate_t2((struct smb_t2_rsp *)pSMBr);
|
rc = validate_t2((struct smb_t2_rsp *)pSMBr);
|
||||||
|
|
||||||
if (rc || (pSMBr->ByteCount < sizeof(FILE_UNIX_BASIC_INFO))) {
|
if (rc || (pSMBr->ByteCount < sizeof(FILE_UNIX_BASIC_INFO))) {
|
||||||
|
cERROR(1, ("Malformed FILE_UNIX_BASIC_INFO response.\n"
|
||||||
|
"Unix Extensions can be disabled on mount "
|
||||||
|
"by specifying the nosfu mount option."));
|
||||||
rc = -EIO; /* bad smb */
|
rc = -EIO; /* bad smb */
|
||||||
} else {
|
} else {
|
||||||
__u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
|
__u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset);
|
||||||
|
|
Loading…
Reference in New Issue