From: Volker Lendecke Date: Wed, 4 Nov 2020 12:20:09 +0000 (+0100) Subject: smbstatus: Use share_mode_filename() X-Git-Tag: samba-4.14.0rc1~662 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2662dff7e03cb4ba97df70d562dc2cbbdfaea58;p=thirdparty%2Fsamba.git smbstatus: Use share_mode_filename() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- 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) {