From c22d521d26a75a71f940088b5a01d7fa924efd88 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 4 Nov 2014 21:46:14 -0800 Subject: s3:smbd: Add fsp_client_guid() utility function to return the connected client guid. Signed-off-by: Jeremy Allison Reviewed-by: Stefan Metzmacher --- source3/smbd/files.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/smbd/files.c') diff --git a/source3/smbd/files.c b/source3/smbd/files.c index a9e8357cf3..71166288a6 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -740,3 +740,8 @@ NTSTATUS fsp_set_smb_fname(struct files_struct *fsp, smb_fname_str_dbg(fsp->fsp_name), &fsp->name_hash); } + +const struct GUID *fsp_client_guid(const files_struct *fsp) +{ + return &fsp->conn->sconn->client->connections->smb2.client.guid; +} -- cgit