From: Ralph Boehme Date: Fri, 1 May 2020 15:05:48 +0000 (+0200) Subject: smbd: set twrp in dptr_ReadDirName() X-Git-Tag: ldb-2.2.0~678 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3073586fd8aabf380db8398d08698b19fd84c66a;p=thirdparty%2Fsamba.git smbd: set twrp in dptr_ReadDirName() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index ac557ac442b..8a847a055eb 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -492,6 +492,7 @@ static char *dptr_ReadDirName(TALLOC_CTX *ctx, /* Create an smb_filename with stream_name == NULL. */ smb_fname_base = (struct smb_filename) { .base_name = pathreal, + .twrp = dptr->smb_dname->twrp, }; if (SMB_VFS_STAT(dptr->conn, &smb_fname_base) == 0) {