diff options
author | Steve French <sfrench@us.ibm.com> | 2005-09-22 01:05:57 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-09-22 01:05:57 -0400 |
commit | 2096243885ee34b78cb57ce835e07c8536a67d2a (patch) | |
tree | caae2d2535d33cca16f11da9a2d25e445bd30018 /fs/cifs/misc.c | |
parent | e30dcf3a1905b4d2154f95db5fdfdf69691b4f0e (diff) |
[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)
Diffstat (limited to 'fs/cifs/misc.c')
-rw-r--r-- | fs/cifs/misc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c index fafbdbfa63a1..26b35b55f31b 100644 --- a/fs/cifs/misc.c +++ b/fs/cifs/misc.c | |||
@@ -450,13 +450,12 @@ checkSMB(struct smb_hdr *smb, __u16 mid, int length) | |||
450 | 450 | ||
451 | if ((4 + len != smbCalcSize(smb)) | 451 | if ((4 + len != smbCalcSize(smb)) |
452 | || (4 + len != (unsigned int)length)) { | 452 | || (4 + len != (unsigned int)length)) { |
453 | return 0; | ||
454 | } else { | ||
455 | cERROR(1, ("smbCalcSize %x ", smbCalcSize(smb))); | 453 | cERROR(1, ("smbCalcSize %x ", smbCalcSize(smb))); |
456 | cERROR(1, | 454 | cERROR(1, |
457 | ("bad smb size detected. The Mid=%d", smb->Mid)); | 455 | ("bad smb size detected. The Mid=%d", smb->Mid)); |
458 | return 1; | 456 | return 1; |
459 | } | 457 | } |
458 | return 0; | ||
460 | } | 459 | } |
461 | int | 460 | int |
462 | is_valid_oplock_break(struct smb_hdr *buf) | 461 | is_valid_oplock_break(struct smb_hdr *buf) |