summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorHolger Hetterich <hhetter@novell.com>2010-05-30 18:52:17 +0200
committerAndreas Schneider <asn@samba.org>2010-06-01 22:10:52 +0200
commitb81f8b131c28c4c300d41eebb054bbf649bfbae4 (patch)
tree4b1bf11ec63a7e302934b976085eb39dd1c76e78 /source3/modules
parent23eb2888d94b34822e4c49b1d62f4bd3fac43fcf (diff)
downloadsamba-b81f8b131c28c4c300d41eebb054bbf649bfbae4.tar.gz
samba-b81f8b131c28c4c300d41eebb054bbf649bfbae4.tar.bz2
samba-b81f8b131c28c4c300d41eebb054bbf649bfbae4.zip
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 <asn@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_smb_traffic_analyzer.c7
1 files 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,