diff options
author | Jeremy Allison <jra@samba.org> | 2006-03-15 22:52:59 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2006-03-15 22:52:59 +0000 |
commit | 584ebaabbff648fe599bd8e8e5ea3cc33ba07ca4 (patch) | |
tree | d9d0a0376e5d6c5a48b105f232a7460e9b0ee235 /source/smbd/files.c | |
parent | 75ea40e911a8e3a841b16499d82213dd2960f2ad (diff) | |
download | samba-584ebaabbff648fe599bd8e8e5ea3cc33ba07ca4.tar.gz samba-584ebaabbff648fe599bd8e8e5ea3cc33ba07ca4.tar.xz samba-584ebaabbff648fe599bd8e8e5ea3cc33ba07ca4.zip |
r14460: SMBexit closes by pid and vuid. Tested with smbtorture.
Jeremy.
Diffstat (limited to 'source/smbd/files.c')
-rw-r--r-- | source/smbd/files.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |