summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-07-06 22:43:14 +0200
committerVolker Lendecke <vl@samba.org>2010-08-07 13:16:48 +0200
commitc9b654f5810f46b20e082895499c0bf2a3077173 (patch)
tree24204ae89da28a751518d4cf247f61c953ad6002 /source3/smbd
parent4b47245a9d7292255a5dca8286283b5519de12e6 (diff)
downloadsamba-c9b654f5810f46b20e082895499c0bf2a3077173.tar.gz
samba-c9b654f5810f46b20e082895499c0bf2a3077173.tar.bz2
samba-c9b654f5810f46b20e082895499c0bf2a3077173.zip
s3: Remove smbd_messaging_context() from send_stat_cache_delete_message()
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/close.c3
-rw-r--r--source3/smbd/statcache.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index fb0e20647e..fad9601491 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -961,7 +961,8 @@ static NTSTATUS close_directory(struct smb_request *req, files_struct *fsp,
become_user(fsp->conn, fsp->vuid);
became_user = True;
}
- send_stat_cache_delete_message(fsp->fsp_name->base_name);
+ send_stat_cache_delete_message(fsp->conn->sconn->msg_ctx,
+ fsp->fsp_name->base_name);
set_delete_on_close_lck(lck, True, get_current_utok(fsp->conn));
fsp->delete_on_close = true;
if (became_user) {
diff --git a/source3/smbd/statcache.c b/source3/smbd/statcache.c
index 88cb97e6a6..cea27d442c 100644
--- a/source3/smbd/statcache.c
+++ b/source3/smbd/statcache.c
@@ -336,10 +336,11 @@ bool stat_cache_lookup(connection_struct *conn,
Tell all smbd's to delete an entry.
**************************************************************************/
-void send_stat_cache_delete_message(const char *name)
+void send_stat_cache_delete_message(struct messaging_context *msg_ctx,
+ const char *name)
{
#ifdef DEVELOPER
- message_send_all(smbd_messaging_context(),
+ message_send_all(msg_ctx,
MSG_SMB_STAT_CACHE_DELETE,
name,
strlen(name)+1,