]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Remove MAX_OPEN_DIRECTORIES check in dptr_create().
authorJeremy Allison <jra@samba.org>
Mon, 8 Jul 2019 22:01:43 +0000 (15:01 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 9 Jul 2019 23:12:16 +0000 (23:12 +0000)
This is a bug in that it's artificially limiting the number
of open directories an SMB2 client can have. If this code
was needed it should by SMB1 specific.

However we should allow the clients to decide for themselves
how many directory handles they need, not limit to MAX_OPEN_DIRECTORIES.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/smbd/dir.c

index 9dddab7b0dd202ca9e20e4d71b05a8625dea837f..421de0af5a70598ee28cbc736f61c1f8fbae1dc3 100644 (file)
@@ -546,10 +546,6 @@ NTSTATUS dptr_create(connection_struct *conn,
                return map_nt_error_from_unix(errno);
        }
 
-       if (sconn->searches.dirhandles_open >= MAX_OPEN_DIRECTORIES) {
-               dptr_idleoldest(sconn);
-       }
-
        dptr = talloc_zero(NULL, struct dptr_struct);
        if(!dptr) {
                DEBUG(0,("talloc fail in dptr_create.\n"));