From 584ebaabbff648fe599bd8e8e5ea3cc33ba07ca4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 15 Mar 2006 22:52:59 +0000 Subject: r14460: SMBexit closes by pid and vuid. Tested with smbtorture. Jeremy. --- source/smbd/files.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/smbd/files.c') diff --git a/source/smbd/files.c b/source/smbd/files.c index 5a545c236e6..ba4baa93b10 100644 --- a/source/smbd/files.c +++ b/source/smbd/files.c @@ -154,16 +154,16 @@ void file_close_conn(connection_struct *conn) } /**************************************************************************** - Close all open files for a pid. + Close all open files for a pid and a vuid. ****************************************************************************/ -void file_close_pid(uint16 smbpid) +void file_close_pid(uint16 smbpid, int vuid) { files_struct *fsp, *next; for (fsp=Files;fsp;fsp=next) { next = fsp->next; - if (fsp->file_pid == smbpid) { + if ((fsp->file_pid == smbpid) && (fsp->vuid == vuid)) { close_file(fsp,SHUTDOWN_CLOSE); } } -- cgit