From 9cb732808943f32049c46c0331fdd17d06a11e78 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 18 Dec 2019 13:27:26 +0100 Subject: [PATCH] s3:libsmb: Generate the inode only based on the path component Currently we use the full smb url which includes also username and password. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14101 Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison (cherry picked from commit ea51a426e506bd6456814ecddcb63441859f9d89) --- source3/libsmb/libsmb_stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/libsmb/libsmb_stat.c b/source3/libsmb/libsmb_stat.c index 16839ae20ad..7145c94c21c 100644 --- a/source3/libsmb/libsmb_stat.c +++ b/source3/libsmb/libsmb_stat.c @@ -190,7 +190,7 @@ SMBC_stat_ctx(SMBCCTX *context, } setup_stat(st, - fname, + path, size, mode, ino, @@ -296,7 +296,7 @@ SMBC_fstat_ctx(SMBCCTX *context, } setup_stat(st, - file->fname, + path, size, mode, ino, -- 2.47.2