s3:smbd: call scavenger_schedule_disconnected() from close normal file for durable...
authorGregor Beck <gbeck@sernet.de>
Wed, 20 Mar 2013 09:01:43 +0000 (10:01 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 18 Apr 2013 11:15:13 +0000 (13:15 +0200)
Signed-off-by: Gregor Beck <gbeck@sernet.de>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/close.c

index 3ad346332e58a92ed225b289c7f49130b3b2d7d8..46aa3563900d879c98f89603db6dce689c91f10d 100644 (file)
@@ -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 "