]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: realign target_fname initialisation in process_symlink_open()
authorRalph Boehme <slow@samba.org>
Sat, 2 May 2020 08:27:04 +0000 (10:27 +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 39587bfe9512b5106aa1b857771d5393f291e6b8..d45c02acd5bf7e7672cd6ce75c04d39b4f3281f0 100644 (file)
@@ -513,7 +513,9 @@ static int process_symlink_open(struct connection_struct *conn,
 
        /* Ensure it's at least null terminated. */
        link_target[link_len] = '\0';
-       target_fname = (struct smb_filename){ .base_name = link_target };
+       target_fname = (struct smb_filename) {
+               .base_name = link_target,
+       };
 
        /* Convert to an absolute path. */
        resolved_fname = SMB_VFS_REALPATH(conn, talloc_tos(), &target_fname);