summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-04-22 15:53:05 +0000
committerSteve French <sfrench@us.ibm.com>2006-04-22 15:53:05 +0000
commit60808233f374aebba26488d06a5f25443f6763c3 (patch)
treee2f85a165398f0c6c7432a7fa715d18efc3d8d5b /fs/cifs/cifssmb.c
parent45af7a0f2ebad1304cab956e15f0b37318226fcd (diff)
downloadop-kernel-dev-60808233f374aebba26488d06a5f25443f6763c3.zip
op-kernel-dev-60808233f374aebba26488d06a5f25443f6763c3.tar.gz
[CIFS] Readdir fixes to allow search to start at arbitrary position
in directory Also includes first part of fix to compensate for servers which forget to return . and .. as well as updates to changelog and cifs readme. Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r--fs/cifs/cifssmb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index d705500..fd36892 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -3119,7 +3119,7 @@ findFirstRetry:
psrch_inf->endOfSearch = FALSE;
psrch_inf->entries_in_buffer = le16_to_cpu(parms->SearchCount);
- psrch_inf->index_of_last_entry =
+ psrch_inf->index_of_last_entry = 2 /* skip . and .. */ +
psrch_inf->entries_in_buffer;
*pnetfid = parms->SearchHandle;
} else {
OpenPOWER on IntegriCloud