]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: initialize twrp in smb_fname in smbd_dirptr_get_entry()
authorRalph Boehme <slow@samba.org>
Fri, 1 May 2020 15:08:37 +0000 (17:08 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 5 May 2020 19:18:41 +0000 (19:18 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dir.c

index f9f62e525c1d06fbbbbefbfbaa6582950f89dd4c..df6dc1b0b843fcb2a444db9d6e11de95a37cc3fc 100644 (file)
@@ -871,6 +871,7 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx,
                smb_fname = (struct smb_filename) {
                        .base_name = pathreal,
                        .st = sbuf,
+                       .twrp = dirptr->smb_dname->twrp,
                };
 
                ok = mode_fn(ctx, private_data, &smb_fname, get_dosmode, &mode);