summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2013-03-20 10:01:43 +0100
committerMichael Adam <obnox@samba.org>2013-04-18 13:15:13 +0200
commitc2ef5182e32fafeb3e279d9fc3a2a409e4aa0543 (patch)
tree14883d89a0c51b70cbceb466e921c031e2f7382d /source3
parent1ed22ba4b7998c1fc29476e931bd463f2bc1ba7e (diff)
downloadsamba-c2ef5182e32fafeb3e279d9fc3a2a409e4aa0543.tar.gz
samba-c2ef5182e32fafeb3e279d9fc3a2a409e4aa0543.tar.bz2
samba-c2ef5182e32fafeb3e279d9fc3a2a409e4aa0543.zip
s3:smbd: call scavenger_schedule_disconnected() from close normal file for durable handles
Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/close.c2
1 files changed, 2 insertions, 0 deletions
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 "