summaryrefslogtreecommitdiff
path: root/source3/smbd/trans2.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-04-08 05:00:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:55 -0500
commit876f2deb3a6029b4e02ec25bc3099bfa07840a14 (patch)
treee176a8a31a7240ab551fba55e6529e4179f772c4 /source3/smbd/trans2.c
parent4ee43dbd477140bd4bf6c42d156dc0a736994da2 (diff)
downloadsamba-876f2deb3a6029b4e02ec25bc3099bfa07840a14.tar.gz
samba-876f2deb3a6029b4e02ec25bc3099bfa07840a14.tar.bz2
samba-876f2deb3a6029b4e02ec25bc3099bfa07840a14.zip
r14986: Fix OS/2 directory delete bug found by kukks.
(Thanks a lot for all your hard work on this). We were caching the results of *all* directory scans, not just the results that match the client wildcard. This actually made no sense, as only matches on the client wildcard can be returned to the client and so might need to be searched for in the cache. This fixes the directory cache to only cache entries that we return to the client. Jeremy. (This used to be commit c88af597d042390ff11b26fe802b0b10d0faa6ce)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r--source3/smbd/trans2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 8429cd7149..4f5039e86c 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -1163,6 +1163,8 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn,
DEBUG(5,("get_lanman2_dir_entry found %s fname=%s\n",pathreal,fname));
found = True;
+
+ dptr_DirCacheAdd(conn->dirptr, dname, curr_dirpos);
}
}