From: Ralph Boehme Date: Tue, 23 Jun 2020 10:14:48 +0000 (+0200) Subject: s3/lib: fsp_str_dbg() doesn't show a possible stream name X-Git-Tag: talloc-2.3.2~1065 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=567f7987e39ffc73ef30e5ef0da0ffdc990b3907;p=thirdparty%2Fsamba.git s3/lib: fsp_str_dbg() doesn't show a possible stream name Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/filename_util.c b/source3/lib/filename_util.c index 418dd20327b..84a248eb766 100644 --- a/source3/lib/filename_util.c +++ b/source3/lib/filename_util.c @@ -195,10 +195,15 @@ const char *fsp_str_dbg(const struct files_struct *fsp) return name; } + name = smb_fname_str_dbg(fsp->fsp_name); + if (name == NULL) { + return ""; + } + name = talloc_asprintf(talloc_tos(), "%s/%s", fsp->dirfsp->fsp_name->base_name, - fsp->fsp_name->base_name); + name); if (name == NULL) { return ""; }