]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: set twrp in target_fname in target_fname()
authorRalph Boehme <slow@samba.org>
Sat, 2 May 2020 08:30:24 +0000 (10:30 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 5 May 2020 19:18:42 +0000 (19:18 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index d45c02acd5bf7e7672cd6ce75c04d39b4f3281f0..4867048c94c9102013260aa9bcc4048f5d3fcf05 100644 (file)
@@ -515,6 +515,7 @@ static int process_symlink_open(struct connection_struct *conn,
        link_target[link_len] = '\0';
        target_fname = (struct smb_filename) {
                .base_name = link_target,
+               .twrp = smb_fname->twrp,
        };
 
        /* Convert to an absolute path. */