From b81f8b131c28c4c300d41eebb054bbf649bfbae4 Mon Sep 17 00:00:00 2001 From: Holger Hetterich Date: Sun, 30 May 2010 18:52:17 +0200 Subject: s3-vfs: Send the share name instead of the path in smb_traffic_analyzer. In protocol v2, the name of the service should be sent instead of the path. Signed-off-by: Andreas Schneider --- source3/modules/vfs_smb_traffic_analyzer.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source3/modules/vfs_smb_traffic_analyzer.c b/source3/modules/vfs_smb_traffic_analyzer.c index 6384c97856..a73d9d0755 100644 --- a/source3/modules/vfs_smb_traffic_analyzer.c +++ b/source3/modules/vfs_smb_traffic_analyzer.c @@ -298,6 +298,8 @@ static char *smb_traffic_analyzer_create_string( TALLOC_CTX *ctx, char *usersid = NULL; char *buf = NULL; char *vfs_operation_str = NULL; + const char *service_name = lp_const_servicename(handle->conn->params->service); + /* * first create the data that is transfered with any VFS op * These are, in the following order: @@ -343,6 +345,7 @@ static char *smb_traffic_analyzer_create_string( TALLOC_CTX *ctx, tm->tm_sec, \ (int)seconds); len = strlen( timestr ); + /* create the string of common data */ buf = talloc_asprintf(ctx, "%s%04u%s%04u%s%04u%s%04u%s%04u%s%04u%s", @@ -353,8 +356,8 @@ static char *smb_traffic_analyzer_create_string( TALLOC_CTX *ctx, username, (unsigned int) strlen(sidstr), sidstr, - (unsigned int) strlen(handle->conn->connectpath), - handle->conn->connectpath, + (unsigned int) strlen(service_name), + service_name, (unsigned int) strlen(handle->conn->server_info->info3->base.domain.string), handle->conn->server_info->info3->base.domain.string, -- cgit