From c2ef5182e32fafeb3e279d9fc3a2a409e4aa0543 Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Wed, 20 Mar 2013 10:01:43 +0100 Subject: s3:smbd: call scavenger_schedule_disconnected() from close normal file for durable handles Signed-off-by: Gregor Beck Reviewed-by: Michael Adam Reviewed-by: Stefan Metzmacher --- source3/smbd/close.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 3ad346332e..46aa356390 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -24,6 +24,7 @@ #include "printing.h" #include "smbd/smbd.h" #include "smbd/globals.h" +#include "smbd/scavenger.h" #include "fake_file.h" #include "transfer_file.h" #include "auth.h" @@ -791,6 +792,7 @@ static NTSTATUS close_normal_file(struct smb_request *req, files_struct *fsp, "proceeding with normal close\n", fsp_str_dbg(fsp), nt_errstr(tmp))); } + scavenger_schedule_disconnected(fsp); } else { DEBUG(1, ("Failed to disconnect durable handle for " "file %s: %s - proceeding with normal " -- cgit