summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/pvfs_flush.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ntvfs/posix/pvfs_flush.c')
-rw-r--r--source4/ntvfs/posix/pvfs_flush.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_flush.c b/source4/ntvfs/posix/pvfs_flush.c
index 2e64dc983d..0f5a07071b 100644
--- a/source4/ntvfs/posix/pvfs_flush.c
+++ b/source4/ntvfs/posix/pvfs_flush.c
@@ -62,8 +62,13 @@ NTSTATUS pvfs_flush(struct ntvfs_module_context *ntvfs,
return NT_STATUS_OK;
}
- /* they are asking to flush all open files */
+ /*
+ * they are asking to flush all open files
+ * for the given SMBPID
+ */
for (f=pvfs->files.list;f;f=f->next) {
+ if (f->smbpid != req->smbpid) continue;
+
pvfs_flush_file(pvfs, f);
}