[CIFS] Add support for legacy servers part nine. statfs (df and du) is now

functional, and the length check is fixed so readdir does not throw a
warning message when windows me messes up the response to FindFirst
of an empty dir (with only . and ..).

Signed-off-by: Steve French (sfrench@us.ibm.com)
This commit is contained in:
Steve French
2005-09-21 22:05:57 -07:00
parent e30dcf3a19
commit 2096243885
7 changed files with 107 additions and 10 deletions

View File

@@ -450,13 +450,12 @@ checkSMB(struct smb_hdr *smb, __u16 mid, int length)
if ((4 + len != smbCalcSize(smb))
|| (4 + len != (unsigned int)length)) {
return 0;
} else {
cERROR(1, ("smbCalcSize %x ", smbCalcSize(smb)));
cERROR(1,
("bad smb size detected. The Mid=%d", smb->Mid));
return 1;
}
return 0;
}
int
is_valid_oplock_break(struct smb_hdr *buf)