summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-15 11:27:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:25 -0500
commit3f6ede84dae170478dd1d8205e99c5f5c0921e28 (patch)
treeea88241c9761b18e21d3b4dbd9eefe9fa9a32997 /source4/ntvfs/posix
parented1fbaee10e6acfde5525715bd4776f0464d7f24 (diff)
downloadsamba-3f6ede84dae170478dd1d8205e99c5f5c0921e28.tar.gz
samba-3f6ede84dae170478dd1d8205e99c5f5c0921e28.tar.bz2
samba-3f6ede84dae170478dd1d8205e99c5f5c0921e28.zip
r14440: demonstrate that the smbpid is attached to a session (vuid),
so SMBexit() only closes files for the given user session and the given PID can someone check if samba3 passes this test, please? metze (This used to be commit fd291ff003ed934b2163d9ad93af9ef2dd631e11)
Diffstat (limited to 'source4/ntvfs/posix')
-rw-r--r--source4/ntvfs/posix/pvfs_open.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_open.c b/source4/ntvfs/posix/pvfs_open.c
index d4b2d0b30a..174cab51ec 100644
--- a/source4/ntvfs/posix/pvfs_open.c
+++ b/source4/ntvfs/posix/pvfs_open.c
@@ -1330,7 +1330,8 @@ NTSTATUS pvfs_exit(struct ntvfs_module_context *ntvfs,
for (f=pvfs->open_files;f;f=next) {
next = f->next;
- if (f->smbpid == req->smbpid) {
+ if (f->session == req->session &&
+ f->smbpid == req->smbpid) {
talloc_free(f);
}
}