From: Jeremy Allison Date: Tue, 16 Jul 2019 16:43:04 +0000 (-0700) Subject: s3: smbd: All directory enumeration is now via file handles - remove unneeded code... X-Git-Tag: tdb-1.4.2~353 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=916afa3746aebe07a06d512db72a852df2f26b9c;p=thirdparty%2Fsamba.git s3: smbd: All directory enumeration is now via file handles - remove unneeded code in idle connections. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/conn_idle.c b/source3/smbd/conn_idle.c index 8fa42b2dd63..1934e9cc130 100644 --- a/source3/smbd/conn_idle.c +++ b/source3/smbd/conn_idle.c @@ -59,16 +59,6 @@ bool conn_idle_all(struct smbd_server_connection *sconn, time_t t) for (conn=sconn->connections;conn;conn=conn->next) { time_t age = t - conn->lastused; - /* - * Don't idle connections with active - * SMB1 directory scans. When all scans - * are via file handles this code can - * be removed. - */ - if (dptr_activecnum(sconn, conn)) { - return false; - } - if (conn->num_files_open > 0 || age < deadtime) { return false; }