From d2662dff7e03cb4ba97df70d562dc2cbbdfaea58 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 4 Nov 2020 13:20:09 +0100 Subject: [PATCH] smbstatus: Use share_mode_filename() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/utils/status.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/source3/utils/status.c b/source3/utils/status.c index 46fd457c8c8..59f09b77160 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -261,14 +261,7 @@ static void print_brl(struct file_id id, share_mode = fetch_share_mode_unlocked(NULL, id); if (share_mode) { - bool has_stream = share_mode->data->stream_name != NULL; - - fname = talloc_asprintf(NULL, "%s%s%s", - share_mode->data->base_name, - has_stream ? ":" : "", - has_stream ? - share_mode->data->stream_name : - ""); + fname = share_mode_filename(NULL, share_mode); } else { fname = talloc_strdup(NULL, ""); if (fname == NULL) { -- 2.47.3