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/netmisc.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/netmisc.c')
-rw-r--r-- | fs/cifs/netmisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c index 873b812c0f40..32efa32774d2 100644 --- a/fs/cifs/netmisc.c +++ b/fs/cifs/netmisc.c | |||
@@ -868,7 +868,7 @@ unsigned int | |||
868 | smbCalcSize(struct smb_hdr *ptr) | 868 | smbCalcSize(struct smb_hdr *ptr) |
869 | { | 869 | { |
870 | return (sizeof (struct smb_hdr) + (2 * ptr->WordCount) + | 870 | return (sizeof (struct smb_hdr) + (2 * ptr->WordCount) + |
871 | BCC(ptr)); | 871 | 2 /* size of the bcc field itself */ + BCC(ptr)); |
872 | } | 872 | } |
873 | 873 | ||
874 | /* The following are taken from fs/ntfs/util.c */ | 874 | /* The following are taken from fs/ntfs/util.c */ |